Widget

Generic term for an object in a dialog column or dialog row, including dialog controls such as radio button groups, checkboxes, editboxes, dropdowns, and comboboxes; static text objects; enabling groups; border panels; and nested dialog columns and dialog rows. For information, see dialog column, dialog row, static text, border panel, enabling group, radiobutton group, checkbox control, angle editbox, angle combobox, integer editbox, integer combobox, measurement editbox, measurement combobox, percent editbox, percent combobox, real editbox, real combobox, and text editbox.

Properties

Property Type Access Description
id number readonly The unique ID of the Widget.
index number readonly The index of the Widget within its containing object.
minWidth number r/w The width of the control. For an editbox or combobox, specifies the minimum width of the box.
parent any readonly The parent of the Widget (a DialogColumn, DialogRow, EnablingGroup or BorderPanel).
properties Object r/w A property that allows setting of several properties at the same time.

Methods

Array of WidgetgetElements ()
Resolves the object specifier, creating an array of object references.

string toSource ()
Generates a string which, if executed, will return the Widget.

string toSpecifier ()
Retrieves the object specifier.

Used in:

Widgets.previousItem (

obj:
Widget )

Widgets.nextItem (

obj:
Widget )

Returned by:

Array of Widget Widget .getElements (

)

Widget Widgets.anyItem (

)

Array of Widget Widgets.everyItem (

)

Widget Widgets.firstItem (

)

Widget Widgets.item (
index:
any
)

Widget Widgets.itemByID (
id:
number
)

Widget Widgets.itemByName (
name:
string
)

Array of Widget Widgets.itemByRange (
from:
any, to:
any
)

Widget Widgets.lastItem (

)

Widget Widgets.middleItem (

)

Widget Widgets.nextItem (
obj:
Widget
)

Widget Widgets.previousItem (
obj:
Widget
)

Leave a Comment

Previous post:

Next post: