search for: sizer

Displaying 20 results from an estimated 176 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
...dd> <dt>Author</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">trunk/wxruby2/swig/cla...
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...
2007 May 05
0
[1015] trunk/wxruby2/doc/textile/sizer.txtl: Clarify that size_t should be a ruby Integer
...#ccc;margin:10px 0;} #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> <dd>2007-05-05 10...
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
...px 0;} #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>[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> <dd>2007-07-04 18:50:43 -...
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)
...#ccc;margin:10px 0;} #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</dd> <dt>Da...
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
...0px 0;} #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>[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-05-28 15:17:14 -0400 (Mon, 28...
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 method args_as_list. The new Sizer#add_item...
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
...ccc;margin:10px 0;} #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</dd> <dt>Date&lt...
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
...-1, "") - @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"> </span><span cl...
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...
2008 Aug 08
0
[ wxruby-Bugs-21491 ] Wx::STAY_ON_TOP and Wx::NO_BORDER messes with Sizer layouts.
...ond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=21491&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Wx::STAY_ON_TOP and Wx::NO_BORDER messes with Sizer layouts. Initial Comment: I am making a full-screen app that I want to stay on top (to re-create something similiar to this app: http://hogbaysoftware.com/products/writeroom for a multi-platform use.) however, I am running into a strange issue. If I use this: def on_init x = Wx::SystemSettings...
2006 Sep 08
1
Confidence intervals on Lowess (eg SiZer from J.S.Marron)
...lt;- seq(0.3, 0.9, by=0.1)'. At this point, we have no models for these data. I wonder if there is any way under R to assign some sort of confidence interval to the lowess line. For example, I have seen a method from the lab of J.S.Marron, which his group has implemented in the Matlab program, SiZer. http://www.stat.unc.edu/faculty/marron/DataAnalyses/SiZer_Intro.html and, the more interesting: http://www.stat.unc.edu/faculty/marron/DataAnalyses/SiZer/SiZer_Basics.html An implementation under R of SiZer would obviously answer this question; does it exist? Suggestions of alternative approac...
2008 Mar 31
1
SiZer plots in R
Hello, I am a graduate student at UNC Chapel Hill, and I am attempting to create a SiZer plot for a nonparametric analysis. I have found the file to use this program in Matlab, however I was hoping to find a package to use this in R. Does anyone know of a package that can create this type of graph? Thanks, Stephanie ___________________________________________________________...