wx.StaticLine Full Width

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

Set the "border" property to 0 for all borders

Horst

···

On Tue, 16 Aug 2005 12:24, Rich Shepard wrote:

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?

Horst,

   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

Hi Rich,

Rich Shepard wrote:

  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:

parent.AddWindow(self.staticLine1, 0, border=2, flag=wx.ALL | wx.EXPAND)

The parent here is the boxSizer.

Hope this helps
Werner

···

TIA,

Rich

Hi Rich,

Rich Shepard wrote:

Set the "border" property to 0 for all borders

Horst,

  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?

Thanks,

Rich

See you
Werner

···

On Tue, 16 Aug 2005, Horst Herb wrote:

Werner,

   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