File
locana_gui_template.rb
Home
Path: locana/locana_gui_template.rb
Modified: Wed Nov 26 13:49:44 GMT-7:00 2003

while (GetMessage.call(frame_id, ievent)) != 0)

Required files

locana/debug
Methods

beep, event_loop, flush_message_queue, get_mouse_position, msgbox, skip_gui_events, timer_cancel, wait,
Classes and Modules

Class LocanaInternalError

Public Instance methods
timer_cancel(timer_id) src

Returns the block or proc object associated with the timer if one was provided with timer_start, otherwise returns the lobject provided with timer_start.

beep(tone=10) src

Beep the display.

wait(millisecs) src

Waits for millisecs.

get_mouse_position() src

Returns [x,y] as the current pixel position of the mouse cursor.

msgbox(msg_text, msg_type=:ok, msg_icon=nil, msg_title=nil, msg_default=nil) src

Create a msgbox object. See the Locana documentation on msgbox() for details about the types of message boxes that should be supported. Returns the select button name or nil if the window is closed.

    msg_title - the title of the window
    msg_text - the text in the message
    msg_type - :ok, :okcancel, etc
    msg_icon - the icon shown with the message (not supported yet)
    msg_default - the button that has the keyboard focus
skip_gui_events(skipping) src

This lets you know we are skipping events in the case you need to do something pro-actively with the GUI

flush_message_queue() src

This processes any pending messages.

event_loop() src

For each event from the GUI, this needs to call the appropriate event method for the object involved with the event. This needs to create/support the following Locana events for the object related to the frame receiving the event, see Levent for more details.


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