User Tools

Site Tools


setthemecolors.htm
Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== SetThemeColors(Apply colors to menu) ====== Previous pageReturn to chapter overviewNext page

SetThemeColors ( <;Theme> ),VIRTUAL

Theme A STRING that represents the theme colors to apply. If omitted, the theme colors are extracted from the operating system's COLOR:ACTIVECAPTION setting.

blk2blue.jpg

SetThemeColors is a virtual method used to set the menu style theme color to apply to the active menu. If the Theme parameter is omitted, the method uses colors determined by the operating systems' COLOR:ACTIVECAPTION theme setting.

Return Value:     None

Implementation:

The SetThemeColors method is usually applied just prior to the ApplyTheme method.

Example:

 AppFrame{PROP:TabBarVisible}  = False

 MenuStyleMgr.Init(?MENUBAR1)

 MenuStyleMgr.SuspendRefresh()

 MenuStyleMgr.SetThemeColors('XPLunaBlue')

 MenuStyleMgr.ApplyTheme()

 MenuStyleMgr.Refresh(TRUE)  

See Also: ApplyTheme(Set Menu Colors and Indicators)

setthemecolors.htm.txt · Last modified: 2021/04/15 15:57 (external edit)