How config the Separator's styles in wxmenu?

5 views
Skip to first unread message

usr.root

unread,
Nov 13, 2009, 6:14:17 AM11/13/09
to wxpython-users
Hi guys,
 
I write a long menu with two separators in it, to make the UI looks much better, I have set the background color for most of the menu items.
But i can not find a way to set the styles of the separators. Is there any way to set the separator's beckground color in wxMenu?
 
Thanks
sylar 

Robin Dunn

unread,
Nov 13, 2009, 1:52:01 PM11/13/09
to wxpytho...@googlegroups.com

I don't know if it will work but if you create a wx.MenuItem with an ID
of wx.ID_SEPARATOR then it should be a separator when added to the menu.
If so then you may be able to customize the look of it like the other
items from there.

--
Robin Dunn
Software Craftsman
http://wxPython.org

Reply all
Reply to author
Forward
0 new messages