Navigation: Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== SetLineMode(set Menu line styles) ====== | |
SetLineMode ( value )
Value | A BYTE representing bit-mapped values, each representing a particular line mode. |
The SetLineMode method is used to set up to three different line styles for the active menu.
This method uses the following bit-mapped equates:
MenuLine:Default EQUATE(0)
MenuLine:ShowGutter EQUATE(1)
MenuLine:FullSeparator EQUATE(2)
MenuLine:Embossed EQUATE(4)
To set a combination of line modes, simply add the appropriate equate to the method.
Return Value: None
Implementation:
SetLineMode should be applied prior to the ApplyTheme method.
Example:
LOC:MenuLine = MenuLine:Default
IF GLO:Separator3D
LOC:MenuLine += MenuLine:Embossed
END
IF GLO:FullSeparator
LOC:MenuLine += MenuLine:FullSeparator
END
IF GLO:VerticalLine
LOC:MenuLine += MenuLine:ShowGutter
END
MenuStyleMgr.SetLineMode(LOC:MenuLine)
END
MenuStyleMgr.ApplyTheme()
MenuStyleMgr.Refresh(TRUE)
DISPLAY()
See Also: GetLineMode(get Menu line styles), ApplyTheme(Set Menu Colors and Indicators)