Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: jmccay on November 02, 2006, 03:50:32 am
-
Build: 3126 / WInXp / gcc 3.4.5 / Unicode
I am trying to allow a space around the edges of my dialog before the edge of the dialog. Currently, I am using FlexGridSizer with 10 spacers on 4 * 6 grid. Is there a better way to do it? Maybe with code instead of completely relying on wxSmith.
jmccay
-
You need to investigate padding. The dialog has a root sizer, to this root sizer and another sizer which has the padding you desire. Then add the rest of your controls to this sizer, not the root one.
-
You need to investigate padding. The dialog has a root sizer, to this root sizer and another sizer which has the padding you desire. Then add the rest of your controls to this sizer, not the root one.
I am not completely sure what you mean by padding. I thought that is what I was doing with the flexgrid & the spacers? I am using wxSmith, & I don't see a way to set the padding using properties. Or are you talking about the border size of the elements added to the sizer? Or did you mean to embed a sizer inside of another sizer? I think this is what you mean, and then you can set the border value of the inner sizer. I guess you meant to say "to this root sizer a[d]d another sizer" instead of "to this root sizer and another sizer".
The second one seems to work the best. That is better than using 10 spacers! Thanks. I didn't think of that.
jmccay
-
Yes I meant "add" not "and", despite my bad English (I am American) I still managed to get the point across. I am glad it was helpful.
-
Nah...it was not bad English. Just bad proof reading, and we all do it. It happens. Thanks again.
jmccay