Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » m_sToolbarText and CExtCustomizeSite Collapse All
Subject Author Date
Offer Har Oct 2, 2011 - 5:06 AM

Dear Support,


When I add customization to my main frame, texts that I add to toolbar buttons are not displayed. Same code, but without customization display the text I place in the command in m_sToolbarText on the button.


Is this a known bug? Is there a fix for this?


Thanks,


Ron.

Technical Support Nov 24, 2011 - 8:50 AM

Yes. You are right.

Technical Support Oct 4, 2011 - 5:41 AM

Buttons in a customizable toolbar or a menu use the CExtCmdItem::m_sToolbarText property only as initial text. Whether the text is visible or not, that is specified by the display style stored in CExtCustomizeCmdTreeNode objects. Display styles can be applied using the CExtCustomizeCmdTreeNode::ModifyFlags() API. There four styles: __ECTN_DISPLAY_DEFAULT_STYLE, __ECTN_DISPLAY_TEXTONLY_IN_MENU, __ECTN_DISPLAY_TEXTONLY_ALWAYS and __ECTN_DISPLAY_TEXT_AND_IMAGE. You can see appropriate menu radio items in the context menu displayed over toolbar buttons in the customize mode. The CMainFrame::_SetCmdStateTextAndImage() method in the BitmapEditor sample application demonstrates how to change the display style.

Offer Har Nov 21, 2011 - 6:59 AM

Dear Support,


The function _SetCmdStateTextAndImage is not called anywhere in the sample application...


Ron.