search for: helloframe

Displaying 7 results from an estimated 7 matches for "helloframe".

Did you mean: halloffame
2008 Jan 19
10
lose focus event?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I''m new to wxruby, and I haven''t found any answer with google: Is there a way to capture a lose focus event on controls, such as a combo box? All my experiments show events when changing the text, but not when leaving the box. I want to make a combobox that autocompletes if I press tab (or down arrow or something), but if I
2007 Aug 22
0
[ wxruby-Support Requests-13276 ] can not load wxruby2.so on win98
...8.10.0) 3. wxruby 1.9.0 (i686-darwin8.4.1) 4. wxruby 1.9.0 (i686-linux) 5. Skip this gem 6. Cancel installation > 1 Successfully installed wxruby-1.9.0-i386-mswin32 But if I try some example it will not work. require "wx" include Wx class HelloWorld < App def on_init helloframe = Frame.new(nil, -1, "Hello World") StaticText.new(helloframe,-1,"Hello World") helloframe.show() end end HelloWorld.new.main_loop ERROR: >ruby wxTest_.rb C:/PROGRAMME/RUBY/lib/ruby/gems/1.8/gems/wxruby-1.9.0-i386-mswin32/lib/wxruby2.so: 1157: Ein der f?r die...
2007 Oct 09
3
Trouble with dialog based application
...ake a dialog based app with wxRuby but the application never exits !! The following code based on a frame works as expected. After the closing of the application window, the "exit from application" string is output. require "wx" class HelloWorld < Wx::App def on_init helloframe = Wx::Frame.new(nil, "Hello World") Wx::StaticText.new(helloframe, "Hello World") helloframe.show end end 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...
2008 Feb 01
2
wxruby2 problems
...wxruby) This simple hello world app (from the website) causes the problem as well: require "wx" include Wx class HelloWorld < App # a new class which derives from the Wx::App class def on_init # we''re defining what the application is going to do when it starts helloframe = Frame.new(nil, -1, "Hello World") # it''s going to make a frame entitled "Hello World" StaticText.new(helloframe,-1,"Hello World") # it''s going to put the text "Hello World" in that frame helloframe.show() # and then it'...
2007 Oct 23
3
CheckListBox : delete method bug !
...end class Wx::CommandEvent alias :get_index :get_int end # End of Copy/Paste of wxRuby 1.9.2 additions ############################################# class Wx::CheckListBox # if the following method is defined, some items cannot be checked ! def delete n super end end Wx::App.run do helloframe = Wx::Frame.new(nil, :title => "CheckListBox Sample") do |frame| lb = Wx::CheckListBox.new(frame) do |c| # use of append within the initializer 0.upto(3) { |i| c.append "item#{i+1}" } end evt_listbox lb.wx_id do |event| lb.delete event.index...
2007 Oct 09
17
Crash when using item data with a CheckListBox
Hi, The following code works as expected with a list box. require "wx" class HelloWorld < Wx::App def on_init helloframe = Wx::Frame.new(nil, "Hello World") choices = ["one", "two", "three", "four", "five"] data = ["data1", "data2", "data3", "data4", "data5"] lb = Wx::ListBox.new(helloframe) #...
2007 Oct 09
17
Crash when using item data with a CheckListBox
Hi, The following code works as expected with a list box. require "wx" class HelloWorld < Wx::App def on_init helloframe = Wx::Frame.new(nil, "Hello World") choices = ["one", "two", "three", "four", "five"] data = ["data1", "data2", "data3", "data4", "data5"] lb = Wx::ListBox.new(helloframe) #...