search for: arrange_horizont

Displaying 2 results from an estimated 2 matches for "arrange_horizont".

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
2007 Apr 04
1
wx layout with sugar
...ing => 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| p2.arrange_horizontally(:padding => 5) @eval = p2.add(Button[:label => ''eval'']) @clear_context = p2.add(Button[:label => ''clear context'']) } } Incidently, it would be cool if sugar allowed applications to register default styles (:padding etc) fo...