I added wx.StaticLine widgets to the four columns in the wx.FlexGridSizer.
There is a gap at both ends of each horizontal line. I read the class
description in the wxWidgets docs, and tried various layout options but I
cannot generate a continuous horizontal line.
What have I missed?
TIA,
Rich
···
--
Dr. Richard B. Shepard, President | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I added wx.StaticLine widgets to the four columns in the
wx.FlexGridSizer. There is a gap at both ends of each horizontal line. I
read the class description in the wxWidgets docs, and tried various layout
options but I cannot generate a continuous horizontal line.
It is, by default. Well, the border size is "0" by default. I just checked
"wxAll" for each of the lines and it makes no difference. I also tried
adjusting the size of each staticLine, but that adjusts the column width
without closing the gap.
On another project I did not have this problem, but when I look at this
other project in wxGlade I cannot see the difference in static lines.
Thanks,
Rich
···
On Tue, 16 Aug 2005, Horst Herb wrote:
Set the "border" property to 0 for all borders
--
Dr. Richard B. Shepard, President | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I added wx.StaticLine widgets to the four columns in the wx.FlexGridSizer.
There is a gap at both ends of each horizontal line. I read the class
description in the wxWidgets docs, and tried various layout options but I
cannot generate a continuous horizontal line.
What have I missed?
Haven't seen what screen layout you are trying to get to. On most of mine I have a boxSizer set to e.g. the wx.Panel or wx.Frame and in it I add one or more FlexGridSizer and if I want a staticLine to separate things I do:
It is, by default. Well, the border size is "0" by default. I just checked
"wxAll" for each of the lines and it makes no difference. I also tried
adjusting the size of each staticLine, but that adjusts the column width
without closing the gap.
On another project I did not have this problem, but when I look at this
other project in wxGlade I cannot see the difference in static lines.
Another idea, did you set the hgap property on the flexgridsizer?
Bingo! That was the problem. I had not made the connection before. An
excellent lesson learned.
Many thanks -- thread closed,
Rich
···
On Tue, 16 Aug 2005, Werner F. Bruhin wrote:
Another idea, did you set the hgap property on the flexgridsizer?
--
Dr. Richard B. Shepard, President | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863