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.
Subject |
Author |
Date |
|
Ulrich Heinicke
|
Jul 14, 2010 - 2:28 PM
|
Hi, i want to enable / disable a ribbon node in a ribbon group depends of the result of an operation. How i can i do this? Do you have an example? Thanks Ulrich
|
|
Technical Support
|
Jul 15, 2010 - 6:40 AM
|
The ribbon bar is a very extended version of the toolbar. Ribbon nodes are used for creating toolbar buttons inside a ribbon bar. Each button has its command identifier. Enabling/disabling toolbar buttons both in toolbar and ribbon bar should be done through the MFC’s command updating mechanism based in the CCmdUI class. You should add a command updating method and bind it to the command identifier of a ribbon button/node. This works for any kind of ribbon elements, any push buttons, text/combo fields, galleries and check box buttons.
|
|