Older Newer
Sun, 08 Jun 2003 08:05:27 . . . . SyneRyder


Changes by last author:

Added:
= STANDARD =

== Syntax ==

:ctl[n]: STANDARD(Class Specific Properties), Other Properties

== Description ==

:The Standard user control is a simple scrollbar including a text label and a numeric edit control. Standard is the default user control type, so you don't need to specify the class property STANDARD when defining the control.

== Class Specific Properties ==

:HORZ

::Changes scrollbar orientation to horizontal. (default)

:VERT

::Changes scrollbar orientation to vertical.

== Other Properties ==

:Color

::Sets the text background color. (default = CadetBlue)

:FontColor

::Sets the font color. (default = White)

:Line

::Sets the left/right button jump unit. (default = 1)

:NoTrack

::Prevents the preview window updating when dragging the scrollbar's handle. (default)

:Page

::Sets the scrollbar paging jump unit. (default = 10)

:Range

::Sets the numerical range the scrollbar can return. (default = (0, 255))

:Text

::Defines the text label next to the scrollbar. (default = no text)

:Track

::Updates the preview window when dragging the scrollbar's handle.

:Val

::Initializes the scrollbar's value. (default = 0)

== Example ==

<code>

ctl[0]: STANDARD(MODALFRAME, HORZ), Text="Plasma effect", Val=10, Disable

ctl[2]: STANDARD(VERT), "Pressure", Range=(-10,10), Val=0, Track

ctl[3]: "Threshold", Range=(-128,128), Val=0

</code>

== Notes ==

:It is best to set the Range before setting the Val. If the Val is set first, it might be clipped by the default Range (0,255) before your custom Range is set. If you set the Range first, you can set Val to any value within that range.

== Also see ==

:SCROLLBAR

== Comments ==

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.