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: 8
Joined: Fri Aug 31, 2018 1:58 pm

wxGridBagSizer set all rows and columns as growable

Post by voyage » Sun Mar 29, 2020 12:09 pm

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: 14961
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxGridBagSizer set all rows and columns as growable

Post by doublemax » Sun Mar 29, 2020 5:57 pm

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

Post Reply