GridSizer and FlexGridSizer, expanding

how would I draw lines around the rows and columns in the grid? It
would be nice if it looked like a table with borders.

Try SetGridLineColour(colour).

HTH,

Cristina.

If you are talking about wx.Grid, that should work, but if you are
talking about wx.GridSizer, wx.FlexGridSizer or wx.GridBagSizer
(and if I understand correctly), you cannot visualize the grid
lines. Sizers simply calculate sizes, they have no visible
properties of their own. Someone else please correct me if I am
wrong.

Donnal Walter
Arkansas Children's Hospital

···

--- "C. Iacob" <ciacob@cluj.astral.ro> wrote:

> how would I draw lines around the rows and columns in the grid?
> It would be nice if it looked like a table with borders.

Try SetGridLineColour(colour).

You cannot visualize a sizer by using native methods, no. But the Dabo dGridSizer (as well as the regular dSizers) have a method called 'drawOutline()' that use DC methods to draw on the window according to each sizer's boundaries. Tie that to the Paint event, and you can see how sizers change as you resize the window.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com

···

On Sep 17, 2005, at 7:53 AM, Donnal Walter wrote:

If you are talking about wx.Grid, that should work, but if you are
talking about wx.GridSizer, wx.FlexGridSizer or wx.GridBagSizer
(and if I understand correctly), you cannot visualize the grid
lines. Sizers simply calculate sizes, they have no visible
properties of their own. Someone else please correct me if I am
wrong.