gray border around a regular wx.Button (Windows)

My google-fu has failed to find a solution to this one :frowning: But surely it must a common problem, if indeed it is a problem.

Under Windows, how do you get rid of the one-pixel wide border around just a regular wx.Button? Iā€™m trying to draw the button on top of a non-gray background, and itā€™s a bit unsightly.

You can see the same borders in the wx demo, under ā€œCore Window Controls -> Buttonā€. Itā€™s hard to see because the buttons are on a white background, but there is a one-pixel gray border around all of them.

And sorry, forgot to post the wx version again. 2.9.4.0.

And a small image is attached to show the border being referred to.

Ā·Ā·Ā·

On Fri, Mar 8, 2013 at 12:43 PM, dhyams dhyams@gmail.com wrote:

My google-fu has failed to find a solution to this one :frowning: But surely it must a common problem, if indeed it is a problem.

Under Windows, how do you get rid of the one-pixel wide border around just a regular wx.Button? Iā€™m trying to draw the button on top of a non-gray background, and itā€™s a bit unsightly.

You can see the same borders in the wx demo, under ā€œCore Window Controls ā†’ Buttonā€. Itā€™s hard to see because the buttons are on a white background, but there is a one-pixel gray border around all of them.

ā€“

You received this message because you are subscribed to the Google Groups ā€œwxPython-usersā€ group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

ā€“
Daniel Hyams
dhyams@gmail.com

The outermost 3 pixels of the button image are drawn by the native
button control. Its color will vary depending on your desktop
theme. If you need a custom look and feel, then youā€™ll need to draw
your own using a panel. See the BitmapButton and GenericButtons
samples in the big wx demo.

Ā·Ā·Ā·

Daniel Hyams wrote:

  And sorry, forgot to post the wx version again.

2.9.4.0.

    And a small image is attached to show the border being

referred to.

      On Fri, Mar 8, 2013 at 12:43 PM, dhyams

dhyams@gmail.com
wrote:

        My

google-fu has failed to find a solution to this one :frowning: But
surely it must a common problem, if indeed it is a problem.

          Under Windows, how do you get rid of the one-pixel wide

border around just a regular wx.Button? Iā€™m trying to
draw the button on top of a non-gray background, and itā€™s
a bit unsightly.

-- Tim Roberts, Providenza & Boekelheide, Inc.

timr@probo.com