|
||||||||
msgbox(msg_title, msg_text, msg_type=:ok, msg_icon=nil, msg_default=nil) # open a message box
to:
msgbox(msg_text, msg_type=:ok, msg_icon=nil, msg_title=nil, msg_default=nil) # open a message box
If you are using Locana, you will need to change any calls you are making to msgbox() to accommodate the new position of the msg_title. Sorry about that.
locana_image_support.rb - contains methods needed for image support. locana_colors.rb - contains all supported color names (symbols) and a color selector window. locana_event.rb - contains all things related to event such as the L_event class and L_object.process_event method. locana_prepare.rb - contains all things related to positioning objects when the :pos attribute is not used. This includes support for the :sticky, :before, :after, :above, :below, :width, :height, :padx, :pady attributes.
win = Locana.window('my_window') {
button('b_ok', :text=>'Ok', :pos=>[20, 20])
}
win.button('b_cancel', :text=>'Cancel', :pos=>[200, 20])
or
win = L_window.new('my_window') {
add(L_button.new('b_ok', :text=>'Ok', :pos=>[20, 20]))
}
win.add(L_button.new('b_cancel', :text=>'Cancel', :pos=>[200, 20]))
myLocal = 1
win = Locana.window('my_window') {
local variable such as myLocal are not visible inside the block
self.key_press = proc{print 'key press in the window'}
bind(:key_release, proc{print 'key release in the window'})
button('b_ok', :text=>'Ok', :pos=>[20, 20])
b_ok.on_click = proc{print 'do something'} # local variables such as myLocal are NOT visible inside the proc object
b_ok.bind(:mlb_up, proc{print 'do something'}) # this does exactly the same thing as the previous statement
}
win.b_ok.mlb_down = proc{print 'do something'} # This also works and local variables like myLocal are visible inside the proc object
win.b_ok.mlb_down = proc{print 'do something'} # This also works and local variables like myLocal are visible inside the proc object
win.on_enter = proc{print 'entering the window'}
bind(:on_exit, proc{print 'leaving the window'})
| 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.