Can't hide `wx.SUNKEN_BORDER` on Mac

Hello,

I have a window with a wx.SUNKEN_BORDER inside a wx.StaticBox. Sometimes I .Hide() this window. This works well on Windows and GTK, but on Mac the sunken border remains visible:

This is after I ran .Hide(). I even tried to cancel the sunken borders when I hide, (and ran .Refresh()) but the borders still show.

What can I do?

Thanks,

Ram.

I don't remember if there is already a ticket for this. It does sound familiar however so you may want to search Trac and then create a ticket if you don't find and existing ticket.

For a workaround you can simply refresh the parent after hiding or reshowing the window with the sunken border.

···

On 7/11/11 8:36 AM, cool-RR wrote:

Hello,

I have a window with a `wx.SUNKEN_BORDER` inside a `wx.StaticBox`.
Sometimes I `.Hide()` this window. This works well on Windows and GTK,
but on Mac the sunken border remains visible:

<https://lh4.googleusercontent.com/-6srxKjddLbw/ThsYAsziHII/AAAAAAAAAFs/MlwPqYsK93I/Mac%252520OS%252520X%252520Leopard-2011-07-11-18-32-16.png&gt;

This is after I ran `.Hide()`. I even tried to cancel the sunken borders
when I hide, (and ran `.Refresh()`) but the borders still show.

What can I do?

--
Robin Dunn
Software Craftsman

Alright, the workaround works!

This issue is not important enough for me personally to submit a ticket, but if it’s important for you just say and I’ll search and create a ticket if there is none.

Thanks,

Ram.

···

On Mon, Jul 11, 2011 at 7:43 PM, Robin Dunn robin@alldunn.com wrote:

On 7/11/11 8:36 AM, cool-RR wrote:

Hello,

I have a window with a wx.SUNKEN_BORDER inside a wx.StaticBox.

Sometimes I .Hide() this window. This works well on Windows and GTK,

but on Mac the sunken border remains visible:

<https://lh4.googleusercontent.com/-6srxKjddLbw/ThsYAsziHII/AAAAAAAAAFs/MlwPqYsK93I/Mac%252520OS%252520X%252520Leopard-2011-07-11-18-32-16.png>

This is after I ran .Hide(). I even tried to cancel the sunken borders

when I hide, (and ran .Refresh()) but the borders still show.

What can I do?

I don’t remember if there is already a ticket for this. It does sound familiar however so you may want to search Trac and then create a ticket if you don’t find and existing ticket.

For a workaround you can simply refresh the parent after hiding or reshowing the window with the sunken border.

Robin Dunn