| Control Properties |
All controls share the same set of properties. A few of these
properties, however, have slightly different effects, depending
on the type of the control.
| CRAWL | 1 | The speed in which movement commands are executed. The lower the value, the slower the control moves. |
| ENABLED | TRUE | If FALSE; the control cannot be altered. |
| EXTENT | 0 0 | The extent of the coordinate system; see EXTENT. |
| FONT | 'MS SANS SERIF' 8 | The font name and the font size; see FONT. Ignored for scroll bars. |
| HEADING | 0 | The heading in the range 0-359. See HEADING. |
| INDEX | The index of the currently selected item (LISTBOX and POPUP only). | |
| ITEMCOUNT | The number of entries (LISTBOX and POPUP only, read-only). | |
| NAME | see below | The name of the control. |
| ORIGIN | 0 0 | The origin of the coordinate system; see ORIGIN. |
| POSITION | 0 0 | The position of the control. |
| RUN | The list of Logo commands to execute when the control is clicked or altered. | |
| SELECTED | FALSE | Set to TRUE to switch the input focus to the the control. |
| SIZE | The size of the control. | |
| TEXT | see below | The text displayed by the control. |
| TOOLTIP | Object name | The help text which appears when the mouse cursor is over the control. Initially set to the name of the control. |
| VELOCITY | 0 | The moving speed of the control in dots per second. See VELOCITY. |
| VISIBLE | TRUE | Determines whether the turtle is visible or not. See SHOWTURTLE. |
| WINDOW | GRAPHICS | The window to which the turtle is attached. See SETTWINDOW. |
| Z.ORDER | 0 to 15 | The Z order of the turtle. Objects with lower Z order appear to be in front of objects with a higher Z order. |
The initial name of a control when it is dropped on a Graphics window is the type name of the control, followed by a dot and a number, like BUTTON.1 or POPUP.3.
The TEXT property of a control acts differently for the
various types of a control:
| BUTTON | The text displayed on the button. |
| CHECKBOX and RADIOBUTTON | The text displayed next to the check box or the radio button. |
| EDITBOX | The contents of the edit box. |
| LISTBOX and POPUP | The text of the currently selected item. If this property is set, the currently selected item is replaced with that text, If no item is selected, the text is appended to the list box. The text may contain newline characters (ASCII 10). If so, each part of the text ending with a newline character is treated as a separate list entry. This makes it possible to insert multiple list entries at once. |
There are a few additional properties for edit boxes:
| FILTER | A set of characters which the user is allowed to enter. | |
| LIMIT | 255 | The maximum number of characters which the user is allowed to type. |
| MODIFIED | FALSE | This property is set to TRUE when the contents of the edit box are changed. |
Scroll bars do not have a TEXT property. Instead, there is a
VALUE property which reflects the position of the slider. There
are a few additional properties for scroll bars:
| LARGEINC | 1 | If the scroll bar is clicked next to the slider, the VALUE property will be altered by this value. |
| SMALLINC | 1 | If the arrows of a scroll bar are clicked, the VALUE property will be altered by this value. |
| MINIMUM | 0 | The minimum value. |
| MAXIMUM | 100 | The maximum value. |
| VALUE | The current value of the scroll bar | |
| VERTICAL | FALSE | Set to TRUE for a vertical scroll bar. |
List boxes and Popups have a set of built-in functions which
may be called by ASKing a specific list box or popup. The index
values are zero based.
| APPEND | text | Append the text as a new list entry.Outputs the index of the first list entry generated. |
| ADDSORTED | text | Add the given text to the list box or popup, and sort it into the present items. Outputs the index of the first list entry generated.. |
| INSERT | text | Inserts the given text at the position of the currently selected item. If none is selected, the text is appended. Outputs the index of the first list entry generated. |
| REMOVE | index | Remove the list entry with the given index. |
| REPLACE | text | Replace the currently selected item with the given text. |
| FIND | text | Attempts to find the given text. Returns the index of the list item found or -1 if the list item could not be found. |