This is a button class that contains a pixmap and is used by the Lspinner, Ldatebox, Lcombobox, and Lscrollbar classes to keep the look and feel of
the small buttons used by these classes consistent and easy to maintain.
Based on the Lbutton class. This requires a
pixmap and will never get the keyboard focus.
can_have_focus?,
ipadx,
ipady,
is_position_inside_object?,
on_paint_border,
open,
paint_focus?,
paint_normal,
process_event,
tab_focus,
trigger_on_mouse_move,
These object have only one frame rather than the standard inner and outer
frames. The border is painted on top of the pixmap after the pixmap is
painted.
Eat all events for these objects. These are internal objects and assigning
code to events for these object will be ignored.
Forward all mouse related events to the owner. This method also forces the
mouse cursor to be :arrow. This is needed since all mouse related events
are forwarded to our owner and we don’t want the pixmap to inherit
the mouse cursor from the owner. Normally the on_mouse_over event sets the mouse
cursor.
The pixmap is painted in the only frame for this object and the border is
painted on top of the pixmap.
Calls on_paint_client since there is only one frame for this object.
Returns false because this object does not get the keyboard focus.
Don‘t paint a focus for this object because this object does not get
the focus.
Returns nil because this object never get the keyboard_focus. This object
does not participate in tabbing between objects.
Generally, these object sit in the parents outer border so we need a
slightly modified calculation.
- lx and ly are the screen relative pixel position of the mouse from
levent[:x] and levent[:y].
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.