search for: set_client_size

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

2008 Jun 12
4
Background thread - entension code - switch contexts
...de) or maybe try to use the same mechanizm with timer as wxRuby does (but how to implement that). My code is simple: require ''wx'' require ''cppapp'' #myextension class MFrame < Wx::Frame STEPS = 100 def initialize super(nil,-1,"Title") set_client_size(Wx::Size.new(300,300)) panel = Wx::Panel.new(self) sizer = Wx::BoxSizer.new(Wx::VERTICAL) btn = Wx::Button.new(panel, -1, "Click me") sizer.add(btn, 0, Wx::GROW|Wx::ALL,2) evt_button(btn.get_id){ Thread.abort_on_exception = true #that does not work...
2004 Aug 03
1
Drawing
Anyone know how to draw in wxRuby? I want to draw a graph, and have it update as new data comes in. I see stuff about Device Contexts, but I can''t find anything about how to use them, associate them with a panel, or anything like that. -Kurt
2004 Oct 21
0
Re: wxRuby: How to add a scrollbar to a Wx::Notebook tab
...th into this example (with faked > data to fill the tabs): > > --- code begin --- > > require ''wxruby'' > > class TabScroller < Wx::App > > def on_init > frame = Wx::Frame.new( nil, -1, ''Matices in tabs'' ) > frame.set_client_size( Wx::Size.new( 400, 120 ) ) > sizer = Wx::BoxSizer.new( Wx::VERTICAL ) > > notebook = Wx::Notebook.new( frame, -1 ) > > fill_tabbook( notebook ) > > frame.show > end > > def fill_tabbook( notebook ) > @sl = [ { :header => "Head...
2004 Jun 22
8
Tracking Mouse motion
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: tst_wxPaint.rbw Type: application/octet-stream Size: 4446 bytes Desc: not available Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040622/abc8ba85/tst_wxPaint-0001.obj
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...span class="cx"> margin to account for fuzziness of its calculations) to call </span><span class="cx"> </span><span class="cx"> </span><del>- window->SetClientSize(child->GetSize()); </del><ins>+ window.set_client_size(child.get_size) </ins><span class="cx"> </span><span class="cx"> </span><span class="cx"> instead of calling Fit. </span><span class="lines">@@ -671,7 +669,7 @@ </span><span class="cx">...
2007 May 10
11
wxRuby2 0.0.40
Congratulations, wxRuby2 0.0.40 but,where is 0.0.40 mswin32.gem? _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...dow#set_best_fitting_size":#Window_setbestfittingsize </del><ins>+* "Window#set_initial_size":#Window_setinitialsize </ins><span class="cx"> * "Window#set_caret":#Window_setcaret </span><span class="cx"> * "Window#set_client_size":#Window_setclientsize </span><ins>+* "Window#set_constraints":#Window_setconstraints </ins><span class="cx"> * "Window#set_containing_sizer":#Window_setcontainingsizer </span><span class="cx"> * "Window#set_curso...