![]() |
Change submenu caption to icon in tearoff toolbar? |
Post Reply
|
| Author | |
MichaelN
Senior Member
Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
Quote Reply
Topic: Change submenu caption to icon in tearoff toolbar?Posted: 05 March 2007 at 3:42pm |
|
I have a tearoff menu that turns into a toolbar. The menu has a popup with a caption for a submenu. When the toolbar appears it shows icons for all buttons except the submenu caption. How do I get rid of the submenu caption and make it an icon like the other toolbar buttons?
I figure I am supposed to do this inside the WM_XTP_TEAROFFDONE handler. I have that working and it gets called by the tearoff. The problem is that I don't know how to change the caption to an icon inside that handler. I don't see any examples of how to do that. Michael |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2007 at 1:40am |
|
Hi, I think there is no icon for this sublemenu.
By default all submenus has id = -1
in WM_XTP_TEAROFFDONE handle, find this control, set its id -> pControl->SetId(Id); and set style pControl->SetStyle(xtpButtonIcon);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |