Context Menu does not show Icons Topic is solved

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
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2409
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Context Menu does not show Icons

Post by evstevemd »

I have posted in wx-users in case it is a bug (and not a feature ;))
I cannot get context Menu at all. Searched and checked it seems everything is ok.
No icons for **any** menu sample. Can one confirm that this code works?
Thanks

I use At revision 73137. (Latest as for now) Ubuntu Linux

Code: Select all

wxMenu* menu = new wxMenu();
	wxMenuItem* item; 
	item = new wxMenuItem(menu, wxID_DELETE );
	item->SetBitmaps(wxArtProvider::GetBitmap(wxART_DELETE, wxART_MENU)); 
	menu->Append(item);
Thanks
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: Context Menu does not show Icons

Post by Auria »

I believe this is a setting in gnome, gnome decided to remove icons from menus (and apparently unity borrowed that from them). If you re-enable them system-wide they should appear
"Keyboard not detected. Press F1 to continue"
-- Windows
Post Reply