Sfairadora

  • Reference Guide

Button_def

The definition type of a button.
Type
Name
Description
Int|Enki optional
style
Button style. One of the button style constants.
Int|Enki optional
alignment
Button title alignment. One of the alignment constants. Only the values ALIGN_LEFT, ALIGN_CENTER, and ALIGN_RIGHT ale allowed.
If not set, a suitable value is determined automatically.
Bool|Enki
ellipsis
If set TRUE and the title does not fit in the button face, it is truncated and ellipsis is appended.
The initial value is TRUE.
Bool|Enki
double_click
If set TRUE, the button’s action is invoked by a double-click (otherwise by a single click).
Bool|Enki
no_close_volatile
If set TRUE, pressing the button does not close the volatile window the button is possibly contained in.
border
The border width between the button’s title and its frame.
Bool|Enki
drag_hover
If set TRUE, hovering with the mouse pointer during drag-and-drop on the button for specified period of time will invoke the button’s action.
The initial value is TRUE.
Bool|Enki optional
hide_title
Hide the button’s title. Only the icon is displayed.
Bool|Enki
asynchronous
If the button’s action is a function, it is executed asynchronously. That is, the rest of Sfairadora continues running while the function is being evaluated.
Icon|Enki optional
icon
The icon displayed on the button.
Rich_string|
Enki optional
title
The text displayed on the button.
Atom|Enki
action
Either one of the presentation commands or the value "EVALUATE".
If the value "EVALUATE" is specified, the attribute action_data contains the source text (the type Enki) of the expression to be evaluated when the button is pressed.
action_data
The data specific to the action. It is the command parameter for presentation commands. For "EVALUATE", it is the source code of the expression to be evaluate.