Howdy,
I'm new to wxWidgets and Codeblocks, but starting to find my way around. Here's a question on a minor level. I'm using a flexgridsizer to hold a couple of items, and I'm trying to control the height proportion of those items as the window changes size. I've checked the Proportion boxes in wxSmith for the respective items (a tabbed notebook and a text control) that are within the sizer, and set relative proportion values, but these seem to be ignored. I've also set the Growable cols and Growable rows in the wxFlexGridSizer properties sheet.
But my proportions seem to be ignored, with both controls being the same height. If I look in the generated code, I can modify these two lines:
FlexGridSizer1->AddGrowableRow(1);
FlexGridSizer1->AddGrowableRow(2);
To be:
FlexGridSizer1->AddGrowableRow(1,5);
FlexGridSizer1->AddGrowableRow(2,1);
And then it works exactly as I wish. My problem - those lines are in the automatically generated section, and are rewritten every time I make any mod in wxSmith. I could always re-edit those two fields, but I fear, as the project grows beyond this prototype, that there will end up being many such fields that will require editing.
Any hints/tips/tricks to solve this? And in general? I am finding it a bit confusing as to where I set sizes, in sizer items, in the parents, or ..., and which flags cause those sizes to be ignored, etc. I'm basically filling in values here and there until something works, but with distressingly little rationale for what I'm doing... :?
Thanks,
Richard