grid column resize ???

I just viewed some of the grid examples in the demo,
really all beautiful, so I might get lost in adding too many features :wink:

But if I compare the simplegrid and the dragable grid demo,
I see something strange that I can't explain.

In the simple grid I can resize the rows and columns,
by either dragging the splitter in the fixed columns / rows (header)
or by dragging the spitter in some random cell (nice I wasn't used to that in windows).

Now if I take the dragable grid demo,
I can resize cols/rows by dragging the splitter in some random cell,
but I can't resize by dragging the splitter (if there's any, I don't see the right cursor)
in the fixed cells.

I can't find any special code in the simple demo,
so I guess resizing is a buildin feature of the grid.

But is it true that I can't drag the splitter in the fixed cells,
or am I missing some flag that's set wrong ?
(not a big issue, but I just want to know).

thanks
Stef Mientki

Stef Mientki wrote:

Now if I take the dragable grid demo,
I can resize cols/rows by dragging the splitter in some random cell,
but I can't resize by dragging the splitter (if there's any, I don't see the right cursor)
in the fixed cells.

I can't find any special code in the simple demo,
so I guess resizing is a buildin feature of the grid.

But is it true that I can't drag the splitter in the fixed cells,
or am I missing some flag that's set wrong ?
(not a big issue, but I just want to know).

The wx.lib.gridmovers module is intercepting the mouse events on the label windows to implement the dragging, so the default mouse event handlers are not being called. Updating the gridmovers code to also support col/row resizes should be possible if somebody wanted to try implementing it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!