wxMenuItem and highlight color
becele at gmail.com
becele at gmail.com
Sun Jan 6 03:38:00 PST 2008
On Jan 6, 1:03 am, va... at wxwidgets.org (Vadim Zeitlin) wrote:
> On Sat, 5 Jan 2008 15:55:19 -0800 (PST) bec... at gmail.com wrote:
>
> > Is there any way to change the highlighted color of a menu item (text
> > and background)?
>
> No, currently there is no way to do it. It shouldn't be difficult to
> make a patch allowing setting these colours for wxMSW (see the code in
> wxOwnerDrawn::OnDrawItem() in src/msw/ownerdrw.cpp) however.
>
In deed, deriving from wxMenuItem and overlading OnDrawItem did the
trick!
Thanks for your help.
More information about the wx-users
mailing list