search for: minimalfram

Displaying 5 results from an estimated 5 matches for "minimalfram".

Did you mean: minimalframe
2008 May 03
3
what type of variable use? (setting text on another class va
so, i have a MinimalFrame class where i have a form, then, after a user add a new client i would like to send a log message on MainFrame status_bar. -- Posted via http://www.ruby-forum.com/.
2008 Jan 04
2
use of Marshal with wxruby classes
Is it possible to use Marshal with wxruby classes to serialize an application''s state? I tried a minimal example of simply serializing a minimal frame object, and I get the error "no marshal_dump is defined for class MinimalFrame". I don''t fully understand this because I also tried another minimal example of dumping a class which did not defined a marshal_dump, and it worked fine. Is there some reason this has been disabled in wxruby classes? Sorry, I picked up ruby a few days ago so I may be missing someth...
2008 Jan 04
2
problem with Menu.append_check_item()
...are created and work as expected. I am running the 1.9.2 tarball. #!/usr/bin/env ruby begin require ''wx'' rescue LoadError => no_wx_err begin require ''rubygems'' load ''wx'' rescue raise no_wx_err end end include Wx class MinimalFrame < Wx::Frame def initialize(title) # The main application frame has no parent (nil) super(nil, :title => title, :size => [ 700, 400 ]) menu_bar = Wx::MenuBar.new menu_file = Wx::Menu.new item1 = menu_file.append(1000, "Test Item 1") item2 = menu_file.a...
2007 Oct 03
0
[ wxruby-Patches-14416 ] Patch for Bug [#12747] Crash on exit
...t of a window that is alreay destroyed. The same happens when one window is closed and then the other window is closed via the menu. Now the method close_all tries to close both windows. But one is already destroyed so the app crashes. I solved this by defining an attribute @closed = false in the MinimalFrame and defining a method closed? which returns the @closed attribute. The close event sets this attribute to true (evt_close { |e| @closed = true, e.skip }) And then I changed the on_activate and close_all method to this: def on_activate(event) if !closed? if event.get_active p...
2007 Apr 07
0
[ wxruby-Bugs-9930 ] StaticBoxSizer causes segfault on exit
...behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: StaticBoxSizer causes segfault on exit Initial Comment: If a StaticBoxSizer is created, it seems to cause a segfault on exit. Adding just this line to MinimalFrame#initialize in the minimal sample shows the error: sizer = Wx::StaticBoxSizer.new( Wx::HORIZONTAL, self, ''foo'' ) On OS X 10.3, working on the wxw28 branch, the backtrace is: Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand. 0x00836264 in ?? () (gdb)...