toolbar, flat style

"Alexander Gnauck" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <34922.80.131.193.63.1069930444.squirrel@www.sltscommunications.net>
Hello,

im trying to create a toolbar with flat style under windows (xp). When i
enable XP styles then the toolbar shows flat. When i disable the xp styles
then i see only 3D Buttons. But the style is set to wxTB_FLAT

my code:

wx.ToolBar toolbar =
this.CreateToolBar(wxNO_BORDER|wx.ToolBar.wxTB_HORIZONTAL|wx.ToolBar.wxTB_FLAT);

toolbar.AddTool((int)Cmd.ToolbatButton1,"test", Images16.Mondrian);
toolbar.Realize();

is there something wrong in my code?

Alex




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.