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)
Class LocanaInternalError
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.
Returns [x,y] as the current pixel position of the mouse cursor.
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
This lets you know we are skipping events in the case you need to do
something pro-actively with the GUI
This processes any pending messages.
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.
- :on_mouse_ldn =>
"when the left mouse button is clicked, levent[:x] and levent[:y]
contain the mouse position",
- :on_mouse_lup =>
"when the left mouse button is released, levent[:x] and levent[:y]
contain the mouse position",
- :on_mouse_ldbl =>
"when the left mouse button is double clicked, levent[:x] and
levent[:y] contain the mouse position",
- :on_mouse_rdn =>
"when the right mouse button is clicked, levent[:x] and levent[:y]
contain the mouse position",
- :on_mouse_rup =>
"when the right mouse button is released, levent[:x] and levent[:y]
contain the mouse position",
- :on_mouse_rdbl =>
"when the right mouse button is double clicked, levent[:x] and
levent[:y] contain the mouse position",
- :on_mouse_mdn =>
"when the middle mouse button is clicked, levent[:x] and levent[:y]
contain the mouse position",
- :on_mouse_mup =>
"when the middle mouse button is released, levent[:x] and levent[:y]
contain the mouse position",
- :on_mouse_mdbl =>
"when the middle mouse button is double clicked, levent[:x] and
levent[:y] contain the mouse position",
- :on_mouse_move =>
"when the mouse moves, levent[:x] and levent[:y] contain the mouse
position",
- :on_key_press =>
"a key was pressed, levent[:keycode] contains the ASCII key code of
the key that was pressed",
- :on_key_release =>
"a key was released, levent[:keycode] contains the ASCII key code of
the key that was pressed",
- :on_move =>
"this GUI window has moved or changed location, levent[:x] &
levent[:y] contain the new location",
- :on_resize =>
"this GUI window has been resized, levent[:x] & levent[:y] contain
the new width and height, respectively",
- :on_paint_object => "this GUI object needs to be repainted,
creating a frame must call this as a minimum. This should be triggered
whenever the object needs repainting",
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.