Class LM_ColorSwatch

Version added: before 9.5
LM_View>LM_BaseWidget>LM_ColorSwatch
Image

LM_Color_Swatch


The LM_ColorSwatch class lets the user choose a color. It is filled in with the current color selection, and when the user clicks it, a color picker appears to select a new color. To create a new color swatch, you would use the LM.GUI.ColorSwatch method.

See also: LM.GUI.ShortColorSwatch

Methods of LM_ColorSwatch:

Name Returns Description Ver
SetConstantMessages SetConstantMessages(b) void Added in version 11 11.0
SetModalMessages SetModalMessages(beginSelectionMsg, endSelectionMsg) void Added in version 11 11.0
SetValue SetValue(color) void < 9.5
Value Value() rgb_color < 9.5

Methods inherited from LM_BaseWidget:

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 Added in version 11 11.0
IsEnabled IsEnabled() bool Tells whether the view is currently enabled < 9.5
IsMouseDragging IsMouseDragging(button) bool Added in version 11 11.0
SetCursor SetCursor(cursor) void Change the cursor < 9.5
SetToolTip SetToolTip(tooltip) void Added in version 12 12.0
Width Width() int32 Added in version 11 11.0