AddGrowableRow & AddGrowableCol

Hello,

please take a look at the source code of my application (appended to this e-mail) and tell me more about the AddGrowableRow and AddGrowableCol (commented out). I don’t understand how to make my 3 widgets stay in the centre of the window in the initial state and also when the window is resized. Please help and thank you.

Best regards,

Boštjan Mejak

IRcalc.zip (727 Bytes)

These methods specify which rows or cols are allowed to stretch when there is more space available to the sizer than the minimum that it needs to display the widgets. So in this case I would make the first and last row, and the first and last column growable, and position the other widgets in between those rows and columns. I also needed to add a spacer at the max row/col so there would be an item there for the sizer to manipulate (otherwise it would ignore that row/col and not keep things centered.)

IRcalc.py (1.84 KB)

···

On 10/10/10 8:12 AM, Boštjan Mejak wrote:

Hello,

please take a look at the source code of my application (appended to
this e-mail) and tell me more about the AddGrowableRow and
AddGrowableCol (commented out). I don't understand how to make my 3
widgets stay in the centre of the window in the initial state and also
when the window is resized. Please help and thank you.

--
Robin Dunn
Software Craftsman