search for: sizer

Displaying 20 results from an estimated 162 matches for "sizer".

Did you mean: size
2007 Jan 22
4
Adding sizers to other sizers doesn''t work
...''m having a heck of a time setting up a GUI with a differing number of widgets per row, resulting in a differing number or widgets per column. At first I tried to simply do something like the following: class CharacterInfoPanel < Wx::Panel def initialize(parent) super(parent) sizer = Wx::BoxSizer.new(Wx::VERTICAL) set_sizer(sizer) row = Wx::Panel.new(self,-1) row_sizer = Wx::BoxSizer.new(Wx::HORIZONTAL) row.set_sizer(row_sizer) row_sizer.add(Wx::StaticText.new(self, -1, "Character Name")) row_sizer.add(Wx::Panel.new(self,-1, Wx::DEFAULT_POSI...
2004 Jun 19
4
FlexGridSizer question
=begin I am trying to understand how FlexGridSizer works and I have written a small test application using the latest wxRuby 0.4.0 on Win XP (Home). I cannot get static text ''Week'', ''Day'' and ''Date'' line up above the OK button. I have tried all combinations of ALIGN flags, but I either got the...
2006 Nov 23
0
[749] trunk/wxruby2: Bring the documentation and actual method support into line for
...lt;/dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-11-22 19:26:12 -0500 (Wed, 22 Nov 2006)</dd> </dl> <h3>Log Message</h3> <pre>Bring the documentation and actual method support into line for partially deprecated Sizer#remove method</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2doctextilesizertxtl">trunk/wxruby2/doc/textile/sizer.txtl</a></li> <li><a href="#trunkwxruby2swigclassesincludewxSizerh...
2007 May 05
0
[1015] trunk/wxruby2/doc/textile/sizer.txtl: Clarify that size_t should be a ruby Integer
...} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1015] trunk/wxruby2/doc/textile/sizer.txtl: Clarify that size_t should be a ruby Integer</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1015</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt...
2007 Feb 19
2
Sizer question
First, Thank you, thank you, thank you for those who put wxRuby together. I''m thrilled to be able to write GUI code in Ruby! I''m hitting some confusion about how Sizers work. I''ve read the tutorials and the section in the wxWidgets book but I still can''t seem to figure this out. Here''s an example of my code: parent = Wx::Panel.new(frame, -1, Wx::Point.new(0, 0), Wx::Size.new (823, 900)) sizer = Wx::BoxSizer.new(Wx::VERTICAL) chi...
2008 May 11
4
Choosing a Sizer
Following alex advices, i''ve used both "text/textctrl.rb" and "etc/threaded.rb" to build my first wxApp. I''ve changed the Sizer type mainly (from "Wx::BoxSizer" to "Wx::FlexGridSizer"). I didn''t find the way to let @log (Wx::TextCtrl) span 2 columns. At the time of writing it''s growing only vertically. And also how to get 16px filler|spacer|border (for window resizer, bottom-right corne...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...h ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1108</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> &lt...
2007 Jan 05
0
[828] trunk/wxruby2/swig/classes/Sizer.i: Ensure that nested Sizers are disowned and not GC''d (fixes segfault at exit)
...} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[828] trunk/wxruby2/swig/classes/Sizer.i: Ensure that nested Sizers are disowned and not GC''d (fixes segfault at exit)</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>828</dd> <dt>Author</dt> <dd>brokentoy<...
2006 Feb 19
2
sizer support for colspan > 1?
I see that GridBagSizer is not yet supported by wxRuby. Is there an alternative to specifying that a widget spans more than one column? I don''t see a way to do that in FlexGridSizer. -- R. Mark Volkmann Partner, Object Computing, Inc.
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...ch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1033</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-0...
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
Hi all, This is a proposal for supporting keyword arguments to Sizer#add following the thread below : http://rubyforge.org/pipermail/wxruby-development/2008-March/001244.html After a deeper look at lib/wx/keyword_ctors.rb and lib/wx/keyword_defs.rb, I understood the whole thing :-). I just reused and modified slightly the met...
2009 Apr 02
1
Controlling vertical position
...been helping me learn wxRuby. The biggest problem I''m having is getting the layout of a screen right. Right now, I have a dialog with several controls on it. With one exception, it looks good. I''m using wxFormBuilder and Xrcise to do the generation. I''m using nested box sizers to try to get things into the right positions. On the upper corner of the screen, I have a box sizer (HORIZONTAL) with a label and a text edit control. Horizontally, they are perfect. They are, however, at the top of the sizer, and I''d like to move them down a bit in the sizer. They don...
2007 Apr 29
8
wxruby unfriendly to other threads?
I''ve seen a few e-mails about multithreading with respect to wxruby but nothing recent. Unless I''m mistaken, and that may be, there still appear to be problems. The following code seems to hang my spawned thread in favor of the wxruby event loop: Thread.new do puts "in thread" loop do sleep 5 puts "looping" end end puts "main
2007 Jan 06
0
[840] trunk/wxruby2/doc/textile/boxsizer.txtl: Add methods listing, remove one bad link and not-for-user method descriptions
...#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[840] trunk/wxruby2/doc/textile/boxsizer.txtl: Add methods listing, remove one bad link and not-for-user method descriptions</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>840</dd> <dt>Author</dt> <dd>brokentoy</...
2007 Dec 28
4
wxSizerItem show() method
It appears from the wx 2.8.7 documentation that a wxSizerItem has a show() method. But when I try to invoke it through wxruby, I get: tasks.rb:56:in `do_btn3'': undefined method `show'' for #<SWIG::TYPE_p_wxSizerItem:0xb5eedf44> (NoMethodError) Is this just something that hasn''t been added because people don''t ma...
2006 Oct 19
0
[691] trunk/wxruby2/samples/calendar/calendar.rb: Placed controls within a panel so they appear on the correct themed background
...quot;) - @calendar = MyCalendar.new(self, date, @calendar_flags) </del><ins>+ now = DateTime.now + @calendar = MyCalendar.new(@panel, now, @calendar_flags) </ins><span class="cx"> </span><span class="cx"> @sizer = BoxSizer.new(VERTICAL) </span><span class="cx"> configure_window </span><span class="lines">@@ -167,11 +166,11 @@ </span><span class="cx"> end </span><span class="cx"> </...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_RubyUnlinkObjects(ptr); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_RubyRemoveTracking(ptr); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} -} - -// Carries out marking of Sizer objects belonging to a Wx::Window. Note -// that this isn''t done as a standard mark routine because ONLY sizers -// that are known to belong to a still-alive window should be marked, -// not those picked up as marked by in-scope variables by -// Ruby. Otherw...
2007 Oct 24
3
API doc update coming?
...- The doc says on_get_item_attr() *may* be overloaded, but if I don''t define it, I get NoMethodError. The API doc appears to be rife with inconsistencies like this. Is anyone working on updating it? Sorry to whine, but newbies like me need all the hand-holding we can get! Also, the Wx::Sizer page has a broken link to "Sizer overview". Oh how I need that overview -- I don''t have any idea how layouts work in GUIs and trying to figure out how to use the Sizer classes is proving quite a challenge. (The sample programs are a big help, but an overview would give me a leg u...
2007 Jul 20
0
[1123] trunk/wxruby2/swig/wx.i: Check sizers being marked have a ruby rep and are not internal Wx-only,
...#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1123] trunk/wxruby2/swig/wx.i: Check sizers being marked have a ruby rep and are not internal Wx-only,</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1123</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date&l...
2004 May 22
4
couple of questions
Hi folks A couple of questions: 1) I seem to get funny artifacts in the display of TreeCtrl, ComboBox and ListBox when the MDI child frame containing it is first painted (see attached - it should be two-root treeview, unopened). I''m not sure if it''s related to being in a MDI, but the controls sample looks OK. The artifacts are cleared up when it''s repainted or