Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Toolbar Buttons with caption
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar Buttons with caption

 Post Reply Post Reply
Author
Message
Vero View Drop Down
Groupie
Groupie
Avatar

Joined: 25 May 2005
Location: Spain
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vero Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar Buttons with caption
    Posted: 24 June 2005 at 8:35am

I want to have a toolbar button with caption visible, but the user can customize this button without text.

If I do: pControlButton->SetStyle(xtpButtonIconAndCaption);

the button is shown with text but the user can not customize this button without text, because the customize menu only shows: By Default, Only Text, Image And Text, and default style is the assigned in SetStyle function.

I have try to change m_buttonCustomStyle property, to select initially a style without changing the default style, but this property is read only (if I change this property in watch window in debug mode, it works!!!!)

What can I do????

Can I make a function to change this property? How?

Thanks in advance,

Vero
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2005 at 1:56am

Hi,

Hmm... to change m_buttonCustomStyle is not good idea too because if user select reset toolbar m_buttonCustomStyle will be reset.

User can delete caption to hide it... not good also...

We will think about this.

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Vero View Drop Down
Groupie
Groupie
Avatar

Joined: 25 May 2005
Location: Spain
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vero Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2005 at 3:32am

The problem is that I want to have any buttons with text by default, but I want the user can select this buttons without text too.

How can I do this???

Vero
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.