search for: set_top_window

Displaying 13 results from an estimated 13 matches for "set_top_window".

2005 Feb 07
7
New Docs - First Look
...work on the template for rdoc output. After the template is done, I am going to work on filtering the documenation and to create links and modify cpp style method names to ruby-style names. For example where it would say "wxApp::SetTopWindow" I would change that into a link "App::set_top_window" I hope to have more progress later tonight. Zach
2004 Apr 21
2
Resizing a ListCtrl
...mn_width(0, LIST_AUTOSIZE_USEHEADER) @fileList.set_column_width(1, LIST_AUTOSIZE_USEHEADER) @fileList.set_column_width(2, LIST_AUTOSIZE_USEHEADER) end #}}} end class TestApp < App #{{{ def on_init @frm = MainFrame.new set_top_window(@frm) @frm.centre(BOTH) @frm.show(true) end end #}}} TestApp.new.main_loop
2006 Sep 17
1
run.rb
This is a first stab at a run.rb file that will let you run a sample in the bigdemo directory by itself. You have to add the following to the bottom of every sample file: if __FILE__ == $0 load "run.rb" run(File.basename($0)) end Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2009 Nov 28
1
'Are you sure?' custom dialog not exiting cleanly
...confirm_closure } evt_button(@m_butexit) {self.close} end def confirm_closure dlg = DIA_Frame.new if(dlg.show_modal==Wx::ID_YES) then dlg.end_modal(Wx::ID_YES) self.destroy end end end class MyApp < Wx::App def on_init main_frame = Main_Frame.new() set_top_window(main_frame) set_exit_on_frame_delete(true) main_frame.show end end app = MyApp.new app.main_loop ============= sample1.xrc =========================================== # This class was automatically generated from XRC source. It is not # recommended that this file is edited directly; ins...
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
..._value(6, 1, ''Cell to the left displayed as boolean'') - end - -end - -class GridApp < Wx::App - def on_init - frame = GridFrame.new(nil, -1, "Grid Sample", - Wx::Point.new(10, 100), - Wx::Size.new(630,400)) - - set_top_window(frame) - frame.show() - end -end - -GridApp.new.main_loop() </del><ins>+#!/usr/bin/env ruby +begin + require ''wx'' +rescue LoadError => no_wx_err + begin + require ''rubygems'' + load ''wx'' + rescue + raise no_wx_err...
2004 Jun 02
13
wxGrid Question
When operating with a wxGrid is there a way to get a reference to the TextCtrl field that is created when you start typing in a cell. Also is there a way to get mouse events to work with a wxGrid, so far I can''t get any of them to work. I had tried various combo''s of: @grid.evt_left_down(){ |event| puts "Left mouse is down"; } using evt_left_down, evt_left_up,
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
..._value(6, 1, ''Cell to the left displayed as boolean'') + end + +end + +class GridApp < Wx::App + def on_init + frame = GridFrame.new(nil, -1, "Grid Sample", + Wx::Point.new(10, 100), + Wx::Size.new(630,400)) + + set_top_window(frame) + frame.show() + end +end + +GridApp.new.main_loop() </ins></span></pre> </div> </div> </body> </html>
2004 May 24
9
Combo Box
...dlgSizer.add(@fileList) dlgSizer.set_size_hints(self) set_sizer(dlgSizer) set_size(Size.new(600,300)) layout() end def on_cmbx_change p @drives_box.get_label end end class TestApp < App def on_init frm = TestFrame.new set_top_window(frm) frm.centre(BOTH) frm.show(true) end end TestApp.new.main_loop
2008 Jan 28
4
GridTableBase
Hello all, i''m using wxruby 1.9.4 with Grid and the model class: "GridTableBase" like in the code below. But the method set_table of the grid does''nt work. Can anyone help me? require ''wx'' include Wx class MyGridTableBase < GridTableBase def get_attr row, col, attr_kind ## end def get_number_rows 0
2004 Dec 09
6
Scrolling to the bottom of a Grid
Hi, Thanks to the newly added event handlers for Wx::Grid in the 0.6.0 release, I can now provide a much slicker intreface to my "data widgets" which heavily rely on that control. However, I haven''t quite figured out how to programmatically scroll to the last row of a populated grid (actually, the first empty row). So say that I have a grid with 200 rows only 20 of which
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...ot;>@@ -463,7 +460,6 @@ </span><span class="cx"> </span><span class="cx"> @frame.set_status_text("Printing demo") </span><span class="cx"> </span><del>- </del><span class="cx"> set_top_window(@frame) </span><span class="cx"> </span><span class="cx"> @print_data = Wx::PrintData.new </span></span></pre> </div> </div> </body> </html>
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across something that kinda bothers me... In order to implement validators you have to override the clone method. The directors seems to be set up to specifically handle this situation. However, whenever C++ calls back to the object''s methods the swig_get_up function is returning false. It seems like swig_up
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
..."wxTextCtrl 8" ) + return ctrl + end +end + + +class AuiDemoApp < Wx::App + def on_init + frame = AuiFrame.new( nil, Wx::ID_ANY, "Wx::AUI Sample Application", + Wx::DEFAULT_POSITION, + Wx::Size.new(800, 600) ) + set_top_window(frame) + frame.show + return true + end +end + +AuiDemoApp.new.main_loop() + + +__END__ + +<html><body> + <h3>Welcome to Wx::AUI</h3> + <br/><b>Overview</b><br/> + <p>Wx::AUI is an Advanced User Interface library for the wxWidget...