Dynamic creation of toolbar items |
Post Reply |
Author | |
Kenneth
Senior Member Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Posted: 23 May 2004 at 3:44pm |
In the article how to "Add a splitter popup button...", it was mentioned that one must avoid the dynamic creation of controls if you plan on using customizable toolbars. In that case, how does one selectively enable the display of icons/caption of some toolbar buttons and only icons on others? In my case, I use: ((CXTPControlButton*)pToolBar->GetControl(0))->S etStyle(xtpButtonIconAndCaption); to enable text display on selected icons. However, the toolbar customization "reset" will remove the text.
|
|
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
|
Look at GetOriginalControls() .. I use that, but I also use designer controls embeded in a resource and I alter m_pDesignerControls at startup as well. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
See CustomThemes sample: lpCreateControl->buttonStyle = xtpButtonIconAndCaption; |
|
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 |