Init (initialize the MenuStyleManager object)

Top  Previous  Next

 

Init( MenuFEQ )

 

 

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)