RECT

Syntax

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

Description

This user control class draws a rectangle in the dialog window. By default, this user control is not actionable.

Class Specific Properties

BLACK
Defines the rectangle's background color as black. (default)
GRAY
Defines the rectangle's background color as gray.
NOTIFY
Makes the user control actionable and activates tooltip.
WHITE
Defines the rectangle's background color as white.

Other Properties

Val
Assigns a value to the frame, but only when it is disabled (default = 0)

Example

ctl[0]: RECT(NOTIFY), Action=ABOUT
ctl[1]: RECT(GRAY), Val=231, Disabled

Notes

Once the rectangle 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.

Comments

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