User Tools

Site Tools


getlinemode.htm
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 ()

blk2blue.jpg

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

Implementation:

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

Example:

IF NOT MenuStyleMgr.GetLineMode()

 LOC:MenuLineStyle = 'Using Default '

END

 

IF NOT MenuStyleMgr.GetLineMode() > 3

 LOC:MenuLineStyle = 'Embossed is active'

END

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

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