Older Newer
Mon, 31 Mar 2003 13:00:09 . . . . SyneRyder


Changes by last author:

Added:
= STATICTEXT =

== Syntax ==

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

== Description ==

:This user control places a text in the dialog window. By default, this user control is not actionable.

== Class Specific Properties ==

:CENTER

::Center-aligns the text.

:LEFT

::Aligns the text to the left. (default)

:LEFTNOWORDWRAP

::Aligns the text to the left and deactivates word wrapping.

:NOTIFY

::Makes the user control actionable and activates tooltip.

:RIGHT

::Aligns the text to the right.

== Other Properties ==

:Text

::Defines the text contents. (default = no text)

:Val

::Assigns a value to the static text. (default = 0)

:Color

::Defines the background color. (default = transparent)

:FontColor

::Defines the text color. (default = white)

== Example ==

<code>

ctl[0]: STATICTEXT(MODALFRAME, NOTIFY), "OK", Color=Red, FontColor=Yellow, Action=APPLY, Size=(60,30)

ctl[3]: STATICTEXT(CENTER), "Edit me"

</code>

== Notes ==

:Once the static text user control is actionable, its value definitions are lost. The reason is that an action returns a specific value and overwrites (once the mouse button is clicked over the user control) the user control's value. For example, the action APPLY returns a value of 2.

== Comments ==

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