This class creates a push button. It is based on the Lobject class. Buttons trigger an :on_click event when the user clicks (:on_mouse_lup) the mouse over the
button. This class also supports the following additional attributes:
- :bitmap - where this is an Lpixmap object or a
filename of an xpixmap.
align,
default_bg,
default_bg_highlight,
default_border,
default_border_highlight,
default_fg,
default_fg_highlight,
inherit_color_from_parent?,
ipadx,
ipady,
justify,
on_enter_key,
on_mouse_ldn,
on_mouse_lup,
on_mouse_out,
on_mouse_over,
paint_normal,
pixel_height,
pixel_width,
skip_object_theme,
text=,
toggle_highlight,
valid_attribute?,
Buttons don’t inherit color from it’s parent like other
objects. Returns false.
Returns True. Buttons don’t pull from the :object portion of the any
theme.
Returns :sunken. This is the default border highlight used when the button
is clicked on.
Returns default_fg(). Highlighting
a button (by clicking on it) does not change it’s color.
Returns default_bg(). Highlighting
a button (by clicking on it) does not change it’s color.
Buttons are highlighted by changing the border. This calls
toggle_highlight_border.
- new_value - true to highlight the object or false to un-highlight the
object.
The default is 6 to make the button look a little cleaner.
The default is 2 to make the button look a little cleaner.
Converts the ’&’ character (except ’& ’) to
an accelerator.
Paints the button in a normal state (not disabled, not highlighted, etc.)
Calls toggle_highlight to support
toggling the border when the left mouse button pressed over the button.
Triggers the :on_click event and calls toggle_highlight to support toggling
the border when the left mouse button is released.
Calls toggle_highlight to support
toggling the border when the mouse moves outside the button and left mouse
button is pressed.
Calls toggle_highlight to support
toggling the border when the mouse moves over the button and left mouse
button is pressed.
Returns the pixel width of the text in the object. This should take into
consideration the font, size, and style of the object and its parents. This
is used to calculate width of the object when needed.
Returns the pixel height of the text in the object. This should take into
consideration the font, size, and style of the object and its parents. This
is used to calculate height of the object when needed.
Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.