Class LM_Button
Version added: before 9.5
The LM_Button class represents a basic push button, like the OK and Cancel buttons in a dialog box. To create a new button, use the
LM.GUI.
Button or
LM.GUI.
ImageButton methods.
Methods of LM_Button:
| Name |
Returns |
Description |
Ver |
|
ReplaceImage ReplaceImage(path, recolor)
|
void |
Added in version 14.4 |
14.4 |
|
SetAlternateMessage SetAlternateMessage(alternateMsg)
|
void |
This message will get sent if the user holds down the alt key while clicking the button |
10.0 |
|
SetAltMessage SetAltMessage(altMessage)
|
void |
Same as SetAlternateMessage, but with better naming now that we support Shift and Ctrl too |
14.4 |
|
SetContinuousMessages SetContinuousMessages(intervalSecs)
|
void |
Added in version 10 |
10.0 |
|
SetCtrlMessage SetCtrlMessage(alternateMsg)
|
void |
This message will get sent if the user holds down the Ctrl key while clicking the button |
14.4 |
|
SetImage SetImage(img, desiredImageWidth, desiredImageHeight, redraw)
|
void |
Added in version 10 |
10.0 |
|
SetLabel SetLabel(label, adjustSize)
|
void |
Sets button's label |
10.0 |
|
SetShiftMessage SetShiftMessage(alternateMsg)
|
void |
This message will get sent if the user holds down the Shift key while clicking the button |
14.4 |
|
SetToolTip SetToolTip(tooltip)
|
void |
Added in version 10 |
10.0 |
|
SetValue SetValue(value)
|
void |
|
< 9.5 |
|
Value Value()
|
bool |
|
< 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 |