context menu icons possible?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
defender
In need of some credit
In need of some credit
Posts: 3
Joined: Sun Aug 05, 2007 1:08 am

context menu icons possible?

Post by defender » Sun Aug 05, 2007 1:11 am

hi

anywhere now if i find a example with a wxwidgets gui with working context menu with icons?

will be context menu icons possible?

or it will make applikation slower?

i see there no function for can use a icon:
http://www.wxwidgets.org/manuals/stable ... tmenuevent

thanks

defender

HeReSY
Earned some good credits
Earned some good credits
Posts: 120
Joined: Fri Sep 17, 2004 8:58 pm
Location: Germany

Post by HeReSY » Sun Aug 05, 2007 6:59 pm

You can use Icons in every menu. Have a look at wxMenuItem.

HeReSY

defender
In need of some credit
In need of some credit
Posts: 3
Joined: Sun Aug 05, 2007 1:08 am

Post by defender » Wed Aug 08, 2007 12:36 am

hi

i read there

http://www.wxwidgets.org/manuals/stable ... wxmenuitem

only windows only?

i mean that will not work on linux?
they stands windows only?

on QT will work context menu icons on all platforms.
When i add a icons then mean my app is not more linux compatible?

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Wed Aug 08, 2007 12:46 am

Also please note that the methods related to fonts and bitmaps are currently only implemented for Windows and GTK+.
this means windows AND linux (unless you plan to use wxX11 and not wxGTK)

defender
In need of some credit
In need of some credit
Posts: 3
Joined: Sun Aug 05, 2007 1:08 am

Post by defender » Wed Aug 08, 2007 1:32 am

hi

i will help for like amule mod.
that i will add context menu icons...
mosty in all context menus which need icons.

but iam very newbie with wxwidgets.

but i am good with QT.

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Wed Aug 08, 2007 1:35 am

defender wrote:hi

i will help for like amule mod.
that i will add context menu icons...
mosty in all context menus which need icons.

but iam very newbie with wxwidgets.

but i am good with QT.
i don't understand what you're trying to say...

just use wxMenuItem::SetBitmap
http://www.wxwidgets.org/manuals/stable ... msetbitmap

Post Reply