search for: hellodlg

Displaying 1 result from an estimated 1 matches for "hellodlg".

Did you mean: helloall
2007 Oct 09
3
Trouble with dialog based application
...HelloWorld.new.main_loop puts "exit from application" If the frame is replaced by a dialog, the application seems to be closed but the message is never output. I tried both show and show_modal to display the window. require "wx" class HelloWorld < Wx::App def on_init hellodlg = Wx::Dialog.new(nil, "Hello World") Wx::StaticText.new(hellodlg, "Hello World") hellodlg.show_modal # hellodlg.show end end HelloWorld.new.main_loop puts "exit from application" => Am I doing something wrong ? Cheers. Chauk-Mean.