wxGridBagSizer set all rows and columns as growable Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
voyage
In need of some credit
In need of some credit
Posts: 9
Joined: Fri Aug 31, 2018 1:58 pm

wxGridBagSizer set all rows and columns as growable

Post by voyage »

I'm not able to find a single function to set as growable all columns and rows of a wxGridBagSizer.

Now I do:

Code: Select all

   for (int col=0;col<GridBagSizer1->GetCols();col++) GridBagSizer1->AddGrowableCol(col);
   for (int row=0;row<GridBagSizer1->GetRows();row++) GridBagSizer1->AddGrowableRow(row);
Is there a simpler way to have the same result?
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxGridBagSizer set all rows and columns as growable

Post by doublemax »

voyage wrote: Sun Mar 29, 2020 12:09 pmIs there a simpler way to have the same result?
No.
Use the source, Luke!
Post Reply