Professional UI Solutions
Site Map   /  Register


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 General Discussion » How to add radio button in RibbonBar Collapse All
Subject Author Date
Roongrit Charoensupkul Jun 19, 2007 - 12:23 AM

Would you please tell me how to add control on RibbonBar such as check box or radio button? I tried to find the code in the sample application but there is no such control in it.

Technical Support Jun 19, 2007 - 11:28 AM

Please take a look at the CMainFrame::_InitRibbonNode_View_ShowHide() method in the RibbonBar sample application. It initializes a set of check box buttons. The check box works very similarly to the ribbon push button. To turn a button into a check box, you should apply the __ECTN_TBB_CHECK_BOX style to its ribbon node:

pNodeRuler->ModifyFlags( __ECTN_TBB_CHECK_BOX );
If you need a radio button, please use the __ECTN_TBB_RADIO_BOX style instead.