Button property clauses

All button clauses are optional.

Certain property clauses can be defined at group level. See Button group property clauses.

label = “text
label_font = “text
label_bgc = rgb_value
label_fgc = rgb_value
label_pen = integer
Screen heading.
Font for the label.
Label background colour.
Label foreground colour.
Pen for the label.

See Button label.

caption = “text
caption_pen = integer
Text for help caption.
Pen for display of help caption.

See Button caption.

width = integer
height = integer
Width of button in pixels or columns.
Height of button in pixels or rows.

See Button size.

field = field_id

Button linked field.

palette = integer

Palette number.

style = flags

Style flags.

transparent = rgb_value

Transparent colour.

image = “text

Filename of graphic image.

tooltip = “text

Text for tooltip.

event = func_id
help = func_id
event_enable = flags
Event function.
Help function.
Enabled events.

See Button events and functions; The event _enable clause.

checked_value = “text
unchecked_value = “text

Value to be assigned when a multi-button is checked or unchecked.

See Button value clauses.


Run time only

[[window_id.]group_id.]button_id->xcreate = int_expression
[[window_id.]group_id.]button_id->ycreate = int_expression

Co-ordinates at which the button is created. See Position (initial).

[[window_id.]group_id.]button_id->checked = TRUE|FALSE

Checked/unchecked state. See Button checked clause.

[[window_id.]group_id.]button_id->tab_order = int_expression

Position in the parent window’s tab sequence. See Tab order.


Run time read-only

[[window_id.]group_id.]button_id->state &

Current state.

[[window_id.]group_id.]button_id->window_handle

Operating system handle.

[[window_id.]group_id.]button_id->xorig =
[[window_id.]group_id.]button_id->yorig =

The original creation co-ordinates of the button. See Position (initial).

[[window_id.]group_id.]button_id->xposn =
[[window_id.]group_id.]button_id->yposn =

Current co-ordinates. See Position (current).


RELATED TOPICS

Buttons

Property clauses