similar to: Sizer question

Displaying 20 results from an estimated 1000 matches similar to: "Sizer question"

2007 Jan 22
4
Adding sizers to other sizers doesn''t work
Hello all, Running this on an Intel Mac OSX 10.4.8 ruby 1.8.4 (2005-12-24) [i686-darwin] wxruby2-preview (0.0.37) using zshell I''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
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 combines the features of add
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
2007 Oct 24
3
API doc update coming?
I''ve upgraded from 1.9.0 to 1.9.2 and am finding that the errors I''m getting don''t match the docs. For example, in Wx::ListCtrl: - The doc makes no mention of on_get_item_column_image(), but without this method I get NoMethodError. - 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
2009 Apr 02
1
Controlling vertical position
First, I want to thank everyone here who''s 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
2007 Nov 07
1
3 wxSugar questions
A bit new to wxRuby and have 2 questions regarding wxSugar: 1. I only find one sample application for wxSugar, but as I understand from the docs, wsSugar is the preferred approach. Are there any more wxSugar samples available somewhere? 2. When I run sugar-sample.rb, I get a couple of warnings: "listen is deprecated, use evt_xxx directly". Just wanted to check: Is this sample
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 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 manipulate wxSizerItems much, or is it
2007 Sep 11
1
LayoutConstraints upgrade path
Hey there. I have an application that I developed with an older branch of wxruby some time ago, and I made heavy use of the LayoutConstraints class. I''ve been looking around, but so far haven''t found much in the way of advice for this scenario. Is there any existing documentation as to updating such applications? Thanks, Ess -- SO not teh 1337
2006 Sep 07
2
A little bit of sugar
Hi Do a search on ''wxruby'' and you''ll see that people''s main gripes are 1) stability 2) development progress 3) documentation and 4) syntax. We''re making great progress on 1-3 so thought it seemed like a good time to start looking at 4). So here''s announcing a first release of WxSugar. It can be downloaded via gems (gem install wx_sugar)
2007 Oct 23
6
wxRuby 1.9.2
I''m happy to announce that wxRuby 1.9.2 is now available from Rubyforge. As usual we''ve got source and binary gems for Win32, OS X and Linux: http://rubyforge.org/frs/?group_id=35 or gem install wxruby == WHAT''S NEW == This release has a mix of new syntax features, new classes, and lots of minor fixes and additions * New shorter syntax for event handlers * New
2006 Dec 30
0
[811] trunk/wxsugar/lib/wx_sugar/layout.rb: Yield the sizer rather than the underlying parent to an ''arrange'' block
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2006 Dec 30
0
[809] trunk/wxsugar/lib/wx_sugar/layout.rb: Fix default sizers to arrange_vertically, add padding on specified sides
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Dec 28
4
static box sizing problems
Hi, I tried this one over on the main wx-users list as well, but thought I would try it here since I am using wxRuby: I am using wxWidgets 2.8.7 on a linux box using the GTK build. I have pared down my issue to the simplest case: I am trying to use a horizontal BoxSizer to split a frame into two sections: a left and right side. I want the left side to stretch proportionally and I want the
2004 May 13
2
A Sizer Tutorial
Hi I''ve added a very basic introduction to using the BoxSizer class for layout in WxRuby to the wiki. Corrections, comments welcome. http://wxruby.rubyforge.org/wiki/wiki.pl?Using_Sizers_For_Layout alex
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 text sticking far too close to the left edge of
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
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
2009 Apr 03
2
Problem with spacing
I''m having the devil''s time trying to get things laid out correctly. I''ve attached a screenshot so that you can get an idea of what I''m seeing. I''ve got a very unattractive space under the two combo boxes, and another one under the buttons. I don''t understand how to reduce this. I know it''s impossible to guess what idiocy I might have
2008 Mar 01
0
[ wxruby-Bugs-18508 ] Sizer#get_children not mapped correctly, SizerItem missing
Bugs item #18508, was opened at 2008-03-01 02:33 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=18508&group_id=35 Category: Missing API call Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Sizer#get_children not mapped correctly, SizerItem missing Initial