Class
Lscrollbar_button
Home
In: locana/l_scrollbar.rb
Parent: Lbutton_pixmap

This is the button used on either side of the scrollbar. It is bases on the Lbutton_pixmap class. The Lscrollbar creates two of these for each scrollbar.

Methods

bg, height, include_objects, on_mouse_ldbl, on_mouse_ldn, on_mouse_lup, on_mouse_out, on_mouse_over, prepare_object, width, windowX, windowY,
Public Class methods
width() src

Returns the width of the pixmap which is 16 pixels.

height() src

Returns the height of the pixmap which is 16 pixels.

Public Instance methods
bg() src

Uses the owners foreground color (:fg attribute).

include_objects() src

Creates several instance variables for this object. Also creates the timer used for repeating the on_mouse_ldn event when the left mouse button is pressed and held. Determines which pixmap to use based on the :otype.

prepare_object(move_obj=nil) src

These buttons always has a fixed size and location.

on_mouse_ldbl(levent=nil) src

Calls on_mouse_ldn otherwise clicking multiple times can appear to skip on_mouse_ldn events.

on_mouse_ldn(levent=nil) src

Tells Lscrollbar to move the scroller button. This also starts a button timer so the on_mouse_ldn will continuously repeat while the button is pressed.

on_mouse_lup(levent=nil) src

Cancels the button timer.

on_mouse_out(levent=nil) src

Stops or delays the button timer. The scrollbars scroller button will stop moving while the mouse is no longer over the button.

on_mouse_over(levent=nil) src

Restarts the button timer.

windowX() src

Makes an adjustment because the clientW of our parent takes the scrollbar button into consideration but we are not in the parents client area.

windowY() src

Makes an adjustment because the clientH of our parent takes the scrollbar button into consideration but we are not in the parents client area.


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