Ribbon Theme changed - how do I get event

Support forum for ARG-Software Design Lab. Command Bars Library [http://www.arg.kirov.ru/]
Locked
kknorr
Posts: 7
Joined: Fri Feb 26, 2010 5:11 pm

Ribbon Theme changed - how do I get event

Post by kknorr »

I have a ribbon control working on the screen. When I change the Theme I would like my forms to respond to this event. How can I do this. I put a command bar on a form and it responds to ribbon threme change. I tried adding the following methods to my base form OnColorsChanged, OnFontChanged, OnVisualThemeChanged,setTitleColour, __OnVisualThemeChanged
AlexG
ARG-Software Design Lab.
Posts: 36
Joined: Sat Nov 14, 2009 5:14 pm

Re: Ribbon Theme changed - how do I get event

Post by AlexG »

You can bind to OnVisualThemeChanged event of the CommandBarsManager (CBM) object, for example:

Code: Select all

BindEvent( oCBM, "OnVisualThemeChanged", yourForm, "OnVisualThemeChanged", 1)
With best regards,

Alex Grigorjev
(ARG-Software Design Lab.)
Locked