search for: arrange_vertically

Displaying 8 results from an estimated 8 matches for "arrange_vertically".

2006 Dec 30
0
[809] trunk/wxsugar/lib/wx_sugar/layout.rb: Fix default sizers to arrange_vertically, add padding on specified sides
...{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>[809] trunk/wxsugar/lib/wx_sugar/layout.rb: Fix default sizers to arrange_vertically, add padding on specified sides</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>809</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-12-29 20:15:57 -0500 (Fri, 2...
2006 Dec 14
5
wxruby2-preview Gauge and wx-sugar with SplitterWindow
...do not expand to fit the splitter''s panels (they just appear small). I''ve tried setting the minsize and proportion when adding them to the panel, i.e @errors = p1.add(ListBox.new(p1), :minsize => true), but then they just disappear altogether. Where am going wrong? arrange_vertically splitter = SplitterWindow.new(self) splitter.minimum_pane_size = 10 p1 = splitter.add(Panel.new(splitter)) do | p1 | @errors = p1.add(ListBox.new(p1)) end p2 = splitter.add(Panel.new(splitter)) do | p2 | @log = p2.add(TextCtrl.new(p2, :style => TE_MULTILINE |...
2007 Apr 04
1
wx layout with sugar
...1 to fill the available space and p2 to be as small as possible (with the root panel filling all the available space). With the following code, the buttons in the p2 end up being truncated, (i.e. the bottom line is missing). Where am I going wrong? add(Panel, :proportion => 1) {|p| p.arrange_vertically(:padding => 5) p.add(Panel, :proportion => 1) {|p1| p1.arrange_vertically(:padding => 5) @history = p1.add(Choice, :minsize => true) @input = p1.add(TextCtrl[:style => TE_MULTILINE], :proportion => 1) } p.add(Panel, :proportion => 0) {|p2...
2007 Jan 15
0
[ wxruby-Bugs-7849 ] disable does not disable some child components on OS X
...By: Nobody (None) Assigned to: Kevin Smith (qualitycode) Summary: disable does not disable some child components on OS X Initial Comment: if you disable a container window, not all the child components get disabled. For example, a notebook containing some controls: @notebook.add(Panel) {|p| p.arrange_vertically p.add(TextCtrl) p.add(RadioBox) p.add(Button) p.add(ComboBox) } On OS X, the TextCrl and Combobox text are still focusable and editable. I think enable may suffer from the same problem (note: this works fine on windows) ---------------------------------------------...
2006 Nov 28
2
(no subject)
I''m using wx_sugar 0.1.2 with wxruby2-preview 0.0.37 on OSX and am coming up with a strange error when trying to create a SpinCtrl: class DatePicker < Wx::Dialog def initialize super(nil, :title => "Pick a date...") arrange_vertically(:padding => 5) @month = Wx::SpinCtrl.new(self) # line 19 add(@month) end end gives error: ArgumentError: Error initializing # Sent paramters: [#, -1, #, #, 4, -1, #, #, 4096, 0, 100, 0] correct parameters are: id (Fixnum) pos (Wxruby2::Point) size (Wxruby2::Size) style (Fixn...
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 Mar 29
7
object-oriented GUI design and event handling
I''m trying to setup a fairly simple GUI with Ruby to perform some SQL queries. There are a few drop-down boxes where users can select different options and then one button that when clicked should get the text from each drop-down in order to perform the query. Once it gets the result it should display it to a text control. The problem is I am not sure how to actually reference each
2006 Dec 18
13
unit testing wxruby GUIs
paul.allton at uk.bnpparibas.com wrote: > I''m a big fan of automated UI testing (i.e. driving the UI from some robot API). I appreciate this > is potentially a whole new project, but does wxwidgets provide a method of clicking buttons, > typing into components ... if so, would it be technically possible to expose this in wxruby. I like automated UI testing too, but