custom toolbar + wx on windows XP

Hello,

I’m trying to create a custom toolbar extending the default one. I’ve been poking around the net and found some hints and have as result the atached file. This works fine on Mac OS. But now I’m testing the software on a windows XP machine and ran into some problems. At first the custom items were not shown at all, meaning I was getting only the default toolbar even when using my class. I posted the problem on the wx mailing list and they suggested using self.Realize() to get the toolbar to update it’s content. This however made the toolbar bigger, no ideea why. I’ve atached some prints with the mac_os look, windows without realize() and windows with realize(). Any suggestions?

Regards,

Bogdan

customtoolbar.py (1.86 KB)

mac_os_look.png

windows_with_realize.png

windows_without_realize.png