Class
Lballoon_help
Home
In: locana/l_balloon.rb
Parent: Llabel

This class defines popup balloon help for Locana. You can disable all balloon help by calling Lballoon_help.disable(). You can set the amount of time to wait for balloon help by calling Lballoon_help.time=(millisec). This class is based on the Llabel class and includes the Lwindow_popup module so this looks and acts like a popup window.

Methods

close, default_bg, default_border, disable, enable, format_balloon_help, include_objects, ipadx, ipady, is_disabled?, is_enabled?, menu_item, open, open, time, time=, timer_cancel, timer_is_active?, timer_start,
Included modules

Lwindow_popup
Public Class methods
menu_item(menu) src

This is a menu item that you can add to your menus to consistently allow the user to enable/disable balloon help.

This adds a menu item to menu and add the :on_click event for the new menu item. For example:

     menu(:mHelp, :text=>'&Help') {     # the menu you want to add the balloon help toggle to
        menu(:mAbout, :text=>'&About')  # any other menu items you want to add
        Lballoon_help.menu_item(self)  # adds menu(:mBalloonHelp, :text=>'&Balloon Help is ' + (Lballoon_help.enabled ? 'on' : 'off'))
     }
enable() src

Enables all balloon help. This is automatically saved to the Locana config file and reloaded the next time you run your applet.

disable() src

Disables all balloon help. This is automatically saved to the Locana config file and reloaded the next time you run.

is_disabled?() src

Returns true if balloon help is disabled. Returns false or nil if balloon help is enabled.

is_enabled?() src

Returns true if balloon help is enabled. Returns false if balloon help is disabled.

time() src

Allows you to set the amount of time in millisecs for the popup help to appear. The default is 1 second.

time=(lvalue) src

Sets the amount of time in millisecs for the pop-help to appear. The :on_mouse_over event triggers the balloon help timer.

timer_is_active?() src

Returns true if the balloon help timer is active.

timer_start(object) src

Start the balloon timer for object. When the timer expires, the popup balloon help appears.

timer_cancel() src

Cancels the balloon help timer.

open(object) src

Opens balloon help for object. The :on_mouse_over event triggers the balloon help timer.

close() src

Close the balloon help if it’s open.

Public Instance methods
default_border() src

Returns the symbol to use as the default border for this object. The default is :none.

default_bg() src

The default background color is :lightyellow.

ipadx() src

Lets add a little padding so the popup help looks a little better. The default is 6.

ipady() src

Lets add a little padding so the popup help looks a little better. The default is 3.

include_objects() src

Creates an instance variable to remember the object associated with the balloon help.

format_balloon_help(help_text) src

Returns a new string containing the word wrapped and formatted help_text for displaying in the popup balloon help. If help_text has line feeds imbedded within it, it will be returned without any formatting applied. Line feeds implies the text has already been pre-formatted for display.

open(lobject) src

This opens the balloon help. The :on_mouse_over event triggers the balloon help timer which triggers the opening the balloon help.


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