setthemecolors_set_colors_based_on_theme_detected_.htm
Navigation: »No topics above this level«====== SetThemeColors ( set colors based on theme detected ) ====== | |
SetThemeColors( )
The SetThemeColors method is used to detect the active theme and set a Menu Style method to automatically match it.
Implementation:
The SetThemeColors method is not used by the MenuStyleManager class, but was created to allow the developer to easily apply an automatic Menu Style under program control.
If an active theme is not detected, the Windows Classic Menu Style is automatically applied.
Example:
OF ?MenuStylesAutomatic !Set MenuStyle to match active theme
MenuStyleMgr.Init(?MenuBar)
MenuStyleMgr.SetThemeColors()
AppFrame{PROP:Text} = 'Menu Styles Demo - Automatic'
setthemecolors_set_colors_based_on_theme_detected_.htm.txt · Last modified: 2019/11/13 16:57 by 127.0.0.1