Windows/Linux buttons look

Hi friends and Happy New Year!

On linux system buttons in disabled state, looks like REALLY disabled buttons, but on windows they are still looks like active. This is correct behavior? Can I fix it?

lin_btn.png

win_btn.png

···

--
Basil Shubin
Freelance Software Developer
http://bashu.wordpress.com

Robin Dunn пишет:

Basil Shubin wrote:

Hi friends and Happy New Year!

On linux system buttons in disabled state, looks like REALLY disabled buttons, but on windows they are still looks like active. This is correct behavior? Can I fix it?

I assume it is a wx.BitmapButton, right? What styles do you use when creating the button? Is it windows XP? If so then I think that the default way to show the button as disabled is to change the standard border by removing the 3D effect, I don't remember if that was the same with previous versions of Windows. But you don't appear to be showing the border at all so if that's the case then you may need to supply the disabled bitmap that you want instead.

Thanks, I just remove wx.NO_BORDER style from buttons.

···

--
Basil Shubin
Freelance Software Developer
http://bashu.wordpress.com