Module
Lwindow_popup
Home
In: locana/l_window.rb

This module can be included by your objects to make your objects act like a popup window. The Lmenu and Lcombobox_listbox objects use this.

Methods

close, hide, move, on_enter, on_exit, on_move, on_resize, open, parent_window, screenX, screenY, show, windowX, windowY,
Public Instance methods
open(parent=nil) src

Open as a popup window with no title bar. It uses :otype = :topmost when creating the window.

close() src

Closes the popup window. This calls hide() before closing the object because hide does some other necessary stuff.

windowX() src

Returns 0 because it needs to work like the Lwindow object.

windowY() src

Returns 0 because it needs to work like the Lwindow object.

screenX() src

Returns self.x because it needs to work like the Lwindow object.

screenY() src

Returns self.y because it needs to work like the Lwindow object.

parent_window() src

Returns self.

show() src

Shows the popup window and brings it to the front. Does not triggers the on_show event.

hide() src

Hides the object. This is equivalent to :object_name.state=:not_visible. Does not triggers the on_hide event.

on_enter(levent=nil) src

Disable the on_enter for popup style windows by default because they cause on_enter/on_exit events in the parent window.

on_exit(levent=nil) src

Disable the on_exit for popup style windows by default because they cause on_enter/on_exit events in the parent window.

on_move(levent=nil) src

These typically don’t track moving and resizing. This does nothing.

on_resize(levent=nil) src

These typically don’t track moving and resizing. This does nothing.

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

The outer frame has special needs.


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