Ribbonbar dynamic menu |
Post Reply |
Author | |
ouatcha
Newbie Joined: 08 June 2010 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 08 June 2010 at 10:54am |
Sorry for my english.
I want that my ribbonbar refreshes dynamicaly :
for example, an item must be enabled or disabled according to a property of my appli. If the value of the property changes, I want that my item becomes disabled automatically ( like my old menu : Define Bar ... Skip For ...), I have tried 'Enabled', but it is not dynamic...
Thanks in advance
|
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
You just need to put some code in the CommandBars_Update event.
Look at the Sample Ribbon example that comes with the controls. For example Select Case Control.ID Case ID_BUTTON1: Control.Checked = bMyVariable1 Case ID_BUTTON2: Control.enabled = Button2ShouldBeEnabled This event occurs every fraction of a second automatically, and is the place to change Buttons as your program progresses. |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
ouatcha
Newbie Joined: 08 June 2010 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
It works !
Thanks a lot ChrisABC !
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |