Print Page | Close Window

Dynamic creation of toolbar items

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=772
Printed Date: 24 December 2024 at 8:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dynamic creation of toolbar items
Posted By: Kenneth
Subject: Dynamic creation of toolbar items
Date 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.

 




Replies:
Posted By: Ark42
Date Posted: 24 May 2004 at 1:08am

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.



Posted By: Oleg
Date Posted: 01 June 2004 at 3:51am

See CustomThemes sample:

lpCreateControl->buttonStyle = xtpButtonIconAndCaption;



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net