Thank you, but there is a problem with
this solution: static lines are allowed to cross, sizers (unless I am understanding
things wrong) are not allowed to cross. Since I would like the lines to
make a cross formation in the center, I don’t think that the sizer container
option will suffice.
Are there any other options that will
work for such an application?
-Brian
Brian Fett
1280 Disc Dr
SHK224
Shakopee, MN 55379
Phone: (952)402-2595
Robin Dunn robin@alldunn.com
Sent by: wxpython-users-bounces@lists.wxwidgets.org
No Phone Info Available
07/14/2008 02:29 PM
Please respond to
wxpython-users@lists.wxwidgets.org
To
wxpython-users@lists.wxwidgets.org
cc
Subject
Re: [wxpython-users] wx.StaticLine in
a sizer - resizes poorly
I have a program that requires a legend, I have created a frame that
pops up and explains what each heading for the rows and columns of
a
table mean. I want to use a static line to bisect both the header
from
the data, and the row side from the column side. Unfortunately, when
I
do this, the line gets resized to fit the sizer becoming unbearably
thick. Code follows:
How does one add a static line that grows only in one direction and
can
be centered?
The grid sizers have this problem in that they expend in both directions
to fill the cell. The workaround is to put the static line in a box
sizer and then put the box sizer in the grid sizer. You can make
the
grid sizer expand the box sizer like normal, but the box sizer will only
need to expand the line in the one direction.
···
`brian.d.fett@seagate.com wrote:
–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
`