Forum: wxRuby Controlling vertical position

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9e6d05909dc733af570faadce1392e67?d=identicon&s=25 Michael Satterwhite (msatterwhite)
on 2009-04-02 21:02
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 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't have to be centered vertically, but they do
need to move down some. I've tried everything I can think of, nesting
other sizers in that sections, etc. but nothing seems to work correctly.

Would someone be so kind as to give me some ideas ... or point me at
some more tutorials on sizers and spacers. I've gone through all of them
I can find on the documentation site.

Thank you *VERY MUCH* ... in advance.
---Michael
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2009-04-05 10:24
(Received via mailing list)
There are two ways in which to do this in wxFormBuilder.  A.) You can
define
the Border width, which is in Pixels, or you can use a Spacer, remove
the
wxEXPAND from it, set the proportion to 0, and define the height you
want in
pixels for the spacer to expand, there by moving the item(s) down from
the
top of the frame.

hth,

Mario

P.S. Sorry for the delay in the response, been busy building up a Gentoo
System here.
This topic is locked and can not be replied to.