User Tools

Site Tools

Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== GetLineMode(get Menu line styles) ====== Previous pageReturn to chapter overviewNext page

GetLineMode ()


The GetLineMode method is used to get up to four 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 get which line mode is active, use the BAND function to test the value retrieved.

Return Value:   BYTE


The GetLineMode method is a tool for the developer to detect which line mode is active, and to toggle it if needed.


IF NOT MenuStyleMgr.GetLineMode()

 LOC:MenuLineStyle = 'Using Default '



IF NOT MenuStyleMgr.GetLineMode() > 3

 LOC:MenuLineStyle = 'Embossed is active'


See Also: SetLineMode(set Menu line styles), ApplyTheme(Set Menu Colors and Indicators)

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