CmdToggle

(Difference between revisions)
Jump to: navigation, search
Admin (Talk | contribs)
(Created page with "= <span class="f_Header">Action</span> = Draw a toggle switch. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <span clas...")
Newer edit →

Revision as of 20:24, 12 December 2014

Contents

Action

Draw a toggle switch.

 

 

Syntax

CmdToggle x, y, w, font, options, state, char

 

 

Remarks

x

x-coordinate of top-left of toggle, in pixels

y

y-coordinate of top-left of toggle, in pixels

w

width of toggle, in pixels

font

font to use for text, 0-31

options

By default the toggle is drawn with a 3D effect and the value of options is zero.

Options OPT_FLAT removes the 3D effect.

state

state of the toggle: 0 is off, 65535 is on

char

String label for toggle. To seperate the labels use 'gap' ie: "off" + gap +  "on"

 

The details of physical dimension are

Outer bar radius I is font height*(20/16)
Knob radius is r-1.5

 

 

Example

Personal tools
Namespaces
Variants
Actions
Navigation
Language