Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: micronpn on February 25, 2015, 05:00:29 pm

Title: wxGrid expanding
Post by: micronpn on February 25, 2015, 05:00:29 pm
I would like to have a wxGrid that expands itself to occupy all the space of the sizer in which is located. If it expands in vertical direction could be ok if it expands its border, not necessarily the number of rows. In the horizontal direction could be preferred but at least I would like it expands a little bit to don't add both the vertical and horizontal bars only because there are more rows as possible for its size. If is possible to do that with a normal wxGrid is there any example or documentaton about?
Title: Re: wxGrid expanding
Post by: Grouch on August 12, 2016, 06:40:59 pm
Have a look at Tutorial 10 in the wxSmith tutorials. The grid there does not automatically expand, but the user can expand it with the mouse or maximize button.
Title: Re: wxGrid expanding
Post by: ouch on August 20, 2016, 01:02:40 am
Couldn't you just use Fit()? wxGrid imports it from wxWindow if I recall.