Code::Blocks Forums
User forums => Using Code::Blocks => Topic started 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?
-
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.
-
Couldn't you just use Fit()? wxGrid imports it from wxWindow if I recall.