User Tools

Site Tools


refresh_refresh_menu_style_.htm
Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== Refresh (Refresh Menu Style) ====== Previous pageReturn to chapter overviewNext page

Refresh( forceRefresh )

blk2blue.jpg

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

refresh_refresh_menu_style_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1