Skip to content

addSwitchButtonToWindow

Spike edited this page May 1, 2017 · 2 revisions

addSwitchButtonToWindow($strWindow, $strName, $isActive, $iSizeX, $iSizeY, $iPosX, $iPosY, $showZeroOne, $doOutline)

$strWindow

Name of the window the switchbutton is added to.

$strName

Name of the button. It's important to use an unique name as this name is used for routing click events!

$isActive

If the button is active, it's switched on and represented in green, if it's off it's red.

$iSizeX

This is the X-Size of the button.

$iSizeY

This is the Y-Size of the button.

$iPosX

This is the X-Position of the button.

$iPosY

This is the Y-Position of the button.

$showZeroOne

If true, 0 is written on the button if it's off and 1 is written if it's on.

$doOutline

Outline 0 or 1 if shown. If $showZeroOne is $False, then this parameter isn't used.

Example Call

addSwitchButtonToWindow $strType "BTN_SWITCH_TOPMOST" $False 60 20 240 12 $True $False

Result

Clone this wiki locally