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 General Discussion » Radio in RibbonBar Collapse All
Subject Author Date
chen xinyu Sep 19, 2009 - 11:10 PM

I want to use a group of radio buttons in RibbonBar, but the question is that I do not know how to get the message after user changed the selection.   Thank you!

chen xinyu Sep 22, 2009 - 12:03 AM

I am sorry. I don’t understand what is your meaning of "command handler and command updating methods"? Do you mean I should use the g_CmdManager->UpdateFromMenu() function? I also want to know if the DoDataExchang() function works.
Thanks a lot.

Technical Support Sep 21, 2009 - 1:07 PM

Toolbar buttons, ribbon bar buttons and menu items are controlled by the MFC’s command updating mechanism. If you have 3 radio buttons with the ID_RADIO1, ID_RADIO2 and ID_RADIO3 command identifiers, then you should add command handler and command updating methods for all these commands. The command handler methods will be invoked on radio button clicks. The command updating methods will be invoked for setting the checked state of each radio button.

chen xinyu Sep 22, 2009 - 12:09 AM

I am sorry. I don’t understand what is your meaning of "command handler and command updating methods"? Do you mean I should use the g_CmdManager->UpdateFromMenu() function? I also want to know if the DoDataExchang() function works.
Thanks a lot.

Technical Support Sep 23, 2009 - 5:03 AM

We mean the radio buttons in the ribbon bar should be implemented exactly in the same way like radio buttons in the classic MFC toolbars and menus.