Class
Lbutton_pixmap
Home
In: locana/l_button.rb
Parent: Lbutton

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.

Methods

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,
Public Instance methods
open(parent) src

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.

process_event(ievent, levent=nil) src

Eat all events for these objects. These are internal objects and assigning code to events for these object will be ignored.

trigger_on_mouse_move(frame, lx, ly, is_mouse_button_pressed) src

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.

paint_normal() src

The pixmap is painted in the only frame for this object and the border is painted on top of the pixmap.

on_paint_border(levent=nil) src

Calls on_paint_client since there is only one frame for this object.

can_have_focus?() src

Returns false because this object does not get the keyboard focus.

paint_focus?() src

Don‘t paint a focus for this object because this object does not get the focus.

tab_focus() src

Returns nil because this object never get the keyboard_focus. This object does not participate in tabbing between objects.

ipadx() src

Returns 0.

ipady() src

Returns 0.

is_position_inside_object?(lx, ly) src

Generally, these object sit in the parents outer border so we need a slightly modified calculation.


Seva Software


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.

http://www.arunadb.org http://www.locana.org http://www.ruby-lang.org http://www.coolwell.org http://www.sevasoftware.com