Class
Ltabgroup_buttonbar
Home
In: locana/l_tabgroup.rb
Parent: Lcontainer

This class is the button bar in the Ltabgroup. It contains a button for each Ltabpage. It also contains two Ltabgroup_buttonbar_scrollbtn objects. One on the left to scroll left and another on the right to scroll the content of the button bar to the right. The Ltabgroup_buttonbar_scrollbtn objects are only visible when they needed. It is based on the Lcontainer class.

Methods

bg, clientX, close, default_bg, default_fg, fg, font, hscroll_position=, include_objects, inherit_color_from_parent?, move, on_resize, on_scroll, open, prepare_object, process_event, scroll_distance, skip_object_theme, windowX, windowY,
Public Instance methods
include_objects() src

Creates several instance variables.

open(parent) src

Opens the scroller buttons if needed.

close() src

Make sure the scroller buttons are closed.

process_event(ievent, levent=nil) src

Redirect most button bar events to the owner (Ltabgroup object).

on_resize(levent=nil) src

Don‘t forward this to the owner.

skip_object_theme() src

Returns true because the button bar does not pull attributes from the :object attribute of any style.

inherit_color_from_parent?() src

Returns false because the button bar does not inherit color from parent objects.

default_fg() src

Returns :sys_button_fg, since we contain buttons, let our color match the default button color.

default_bg() src

Returns :sys_button_bg, since we contain buttons, let our color match the default button color.

fg() src

If the tabpage has an explicit color (not an inherited color), we want to use it.

bg() src

If the tabpage has an explicit color (not an inherited color), we want to use it.

font() src

If the tabpage has an explicit font (not an inherited color), we want to use it.

prepare_object(move_obj=nil) src

Shows the left scroller only it is needed (hscroll_position > 0)

move(x, y, w=nil, h=nil, remember_position=nil) src

Repositions the right scroller button if needed and creates or hides the either of scroller buttons as needed.

hscroll_position=(new_value) src

Scrolls the buttons in the button bar to the left or right to match new_value. This is automatically called when either of the scroller buttons are clicked on. Also turns on and off the scroller buttons (Ltabgroup_buttonbar_scrollbtn objects) as needed.

scroll_distance() src

Returns the number of pixels to scroll left or right. The default is clientW / 2 so scrolling is 50% of the width.

on_scroll(levent=nil) src

This is called when the buttons in the button bar need to be scrolled right or left. The scrollber buttons call this to when they are clicked.

clientX() src

Returns the x pixel position of the client area of the object relative to the object upper left corner.

windowX() src

Compensate for being in the outer frame of the tabgroup rather than the inner frame.

windowY() src

Compensate for being in the outer frame of the tabgroup rather than the inner frame.


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