Simple layout query

4 views
Skip to first unread message

Tim Burgess

unread,
Mar 26, 2013, 6:06:10 AM3/26/13
to wx-u...@googlegroups.com

Hi,

I’ve been successfully creating dialog box layouts using sizers, despite the fact that I’m blind and have to rely on speech output to do my programming (thanks to all who implemented this feature, it’s a massive help).

However, I’ve been asked to create a gap between two blocks of label/text box pairs – the required effect being equivalent to a blank line or two.  What’s my best method for doing this so that I can use a constant to define the height of the gap?  Do I need to take the coordinates of the last

label above the gap then use that to calculate coordinates for the first label below the gap?  Will this mess up my sizers?  The layout for the dialog in question is extremely simple, with each label/text box pair being contained within horizontal sizers.  These sizers are then collected into a single vertical sizer.

All advice gratefully received.

Best wishes.

Tim Burgess
Raised Bar Ltd.

Tel:  +44 (0)1827 719822
Web:  http://www.raisedbar.net

We can supply Roland and Avid products with specialist pre and post-sales support for visually-impaired users just drop us a line for a quote.

Dont forget to sign our on-line petition to lobby for improved access to music education and music technology at: 

http://www.raisedbar.net/petition.htm

Steve Barnes

unread,
Mar 26, 2013, 6:18:42 AM3/26/13
to wx-u...@googlegroups.com
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to wx-users+u...@googlegroups.com
or visit http://groups.google.com/group/wx-users
 
 
Tim,
You can simply insert a spacer into the sizer, probably the top level vertical sizer from the sound of it - this can be done either by calling AddSpacer(size) or Add(h_size, v_size, 0) on the sizer.

Steve

--
Steve Gadget Barnes

Tim Burgess

unread,
Mar 26, 2013, 6:35:58 AM3/26/13
to wx-u...@googlegroups.com

Excellent – many thanks.

 

Best wishes.

Tim Burgess

Reply all
Reply to author
Forward
0 new messages