User Tools

Site Tools


setlinemode.htm
Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > MenuStyleManager Class > MenuStyleManager Methods >====== SetLineMode(set Menu line styles) ====== Previous pageReturn to chapter overviewNext page

SetLineMode ( value )

Value A BYTE representing bit-mapped values, each representing a particular line mode.

blk2blue.jpg

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)

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