User Tools

Site Tools


init_initialize_the_menustylemanager_object_.htm
Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== Init (initialize the MenuStyleManager object) ====== Previous pageReturn to chapter overviewNext page

Init( MenuFEQ )

blk2blue.jpg

MenuFEQ A numeric constant, variable, EQUATE, or expression containing the control number of the filedrop's LIST control.

The Init method initializes the MenuStyleManager object.

Implementation:

The Init method is used to initialize the target MenuStyleManager object, and identifies the target MENUBAR to modify via the MENUBAR Field Equate Label.

Example:

 MenuStyleMgr.Init(?MenuBar)
 MenuStyleMgr.SetFlatMode(False)
 MenuStyleMgr.SetColor(MenuBrushes:ImageBkgnd,-2147483644,-2147483644)
 MenuStyleMgr.SetColor(MenuBrushes:SelectedBkgnd,8388608,8388608,False)
 MenuStyleMgr.SetColor(MenuBrushes:SelectedBarBkgnd,8388608,8388608,True)
 MenuStyleMgr.SetColor(MenuBrushes:HotBkgnd,8388608,8388608,True)
 MenuStyleMgr.SetColor(MenuBrushes:FrameBrush,8388608, 8388608,True)
 AppFrame{PROP:Text} = 'Visual Styles Demo - Windows Classic Menu Style Active'
 DISPLAY()

See Also:     InitMenuInterface(initialize menu properties)

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