Navigation: Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== Refresh (Refresh Menu Style) ====== | |
Refresh( forceRefresh )
forceRefresh | A Boolean value that when TRUE forces an unconditional refresh of the Menu Style. |
Refresh indicates that the active menu style needs to be refreshed. If the forceRefresh flag is FALSE, a refresh is not applied if the delayRefresh property is TRUE. Otherwise, a refresh calls the InitMenuInterface method.
Implementation:
The Refresh method should be called at runtime whenever any menu style, color, or attribute is modified. It should usually immediately follow the ApplyTheme method.
Example:
RefreshMenuTheme ROUTINE
MenuStyleMgr.SuspendRefresh()
MenuStyleMgr.SetThemeColors(GLO:MenuTheme)
IF GLO:ManualSettings
IF GLO:NoBar
MenuStyleMgr.SetImageBar(FALSE)
ELSE
MenuStyleMgr.SetImageBar(TRUE)
END
MenuStyleMgr.SetSeparator3D(GLO:Separator3D)
MenuStyleMgr.SetSeparatorFull(GLO:FullSeparator)
MenuStyleMgr.SetVerticalLine(GLO:VerticalLine)
END
IF GLO:WhiteBackground
MenuStyleMgr.SetWhiteBackground()
END
MenuStyleMgr.ApplyTheme()
MenuStyleMgr.Refresh()
DISPLAY()
See Also: delayRefresh, InitMenuInterface