Class LM_TextList
Version added: before 9.5
The
LM_TextList class provides a scrollable list of text items. To create a new text list, you would use the
LM.GUI.
TextList method.
Methods of LM_TextList:
| Name |
Returns |
Description |
Ver |
|
AddItem AddItem(label, redraw)
|
void |
Adds a new text item to the end of the list |
< 9.5 |
|
AddItemAlphabetically AddItemAlphabetically(label, redraw)
|
void |
Inserts a new item into the list alphabetically. |
< 9.5 |
|
CountItems CountItems()
|
int32 |
Returns the number of entries in the list |
< 9.5 |
|
GetItem GetItem(id)
|
char |
Returns the string value of an item in the list |
< 9.5 |
|
RemoveItem RemoveItem(id, redraw)
|
void |
Removes an item from the list |
< 9.5 |
|
SelItem SelItem()
|
int32 |
Returns the id number of the currently selected item (starting with 0 for the first item) |
< 9.5 |
|
SelItemLabel SelItemLabel()
|
char |
Returns the text string associated with the currently selected item |
< 9.5 |
|
SetItemLabel SetItemLabel(id, label)
|
void |
Changes the text string associated with an entry in the list |
< 9.5 |
|
SetSelItem SetSelItem(id, redraw)
|
void |
Selects an item in the list |
< 9.5 |
|
SetSelItem SetSelItem(label, redraw)
|
bool |
Selects an item that matches the supplied string |
< 9.5 |
| Name |
Returns |
Description |
Ver |
|
Redraw Redraw()
|
void |
Call this function to force the widget to redraw itself |
< 9.5 |
Methods inherited from LM_View:
| Name |
Returns |
Description |
Ver |
|
Enable Enable(enable)
|
void |
Enables or disables a view object |
< 9.5 |
|
Height Height()
|
int32 |
Returns the height of the widget |
11.0 |
|
IsEnabled IsEnabled()
|
bool |
Tells whether the view is currently enabled |
< 9.5 |
|
IsMouseDragging IsMouseDragging(button)
|
bool |
Verifies if dragging mouse button matches the given argument |
11.0 |
|
SetCursor SetCursor(cursor)
|
void |
Change the cursor |
< 9.5 |
|
SetToolTip SetToolTip(tooltip)
|
void |
Sets the tooltip text for a user interface control |
12.0 |
|
Width Width()
|
int32 |
Returns the height of the widget |
11.0 |