wxWizard Resize

Is there anyway to resize the wizard window after it is already running. I have a wxGrid in the wizard window and I want to resize the wizard window so that the user will be able to see the whole table.
Also, how does one make the size of a window be dependent on the user's monitor dimensions and resolution. Thanks.

Gilad

Gilad Suberri wrote:

Is there anyway to resize the wizard window after it is already
running. I have a wxGrid in the wizard window and I want to resize
the wizard window so that the user will be able to see the whole
table.

I think that if the page containing the grid uses a sizer for layout and it has a minimum size set for the grid then the wizard will adjust itself for the minimum size needed for that and all the other pages. But it won't adjust itself after it has started running. One of the properties of wizards are that they allow the user to easily move through multiple pages of controls, and the window is sized to accomodate the largest of them.

Also, how does one make the size of a window be dependent on
the user's monitor dimensions and resolution. Thanks.

Use wxGetDisplaySize or similar and then set the size of your window accordingly.

ยทยทยท

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

Gilad Suberri wrote:

Is there anyway to resize the wizard window after it is already running. I have a wxGrid in the wizard window and I want to resize the wizard window so that the user will be able to see the whole table.
Also, how does one make the size of a window be dependent on the user's monitor dimensions and resolution. Thanks.

Gilad

My normal strategy for grids is just to resize the grid and not the page, something like

size = grid.GetSize()
grid.SetSize((size[0]+1, size[1])
grid.SetSize(size)
grid.ForceRefresh()

Does the trick for me.

Brian.