From: Chris Barker
Robin Dunn wrote:
> Yep, for some types of controls Aqua draws decorations around the
> outside of the actual widget. They don't think this is a bug because
> the Apple Human Interface Guidelines stipulate that there be a certain
> minumum amount of empty space around all widgets. The easiest thing to
> do work around this is to just give every item in the sizer a border=5
> and add wxALL to the flags.THe problem with this is that you get a lot of space that you don't need
on other platforms. Stefan said that he would add a space automagically
around buttons for sizers. I did some test, and I think I determined
that 4 pixels was the minumujm required.
I just double-checked and at least for wxButton you need 6 pixels on the
bottom and right sides, you need less on the top and left; the drop shadow
is probably the worst on wxButton thus is needs the most space. wxTextCtrl
with its selection around the control probably takes less. Make sure to
select the control when verifying pad amounts.
ka