Adding images to the ContextMenu

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Adding images to the ContextMenu

Postby graham42s » Fri Sep 17, 2021 6:43 am

Hi Guys,

I don't see any information on this but is it possible to add images to the custom ContextMenu?

Code: Select all
model.AddItem((CefMenuCommand)26501, "Open chrome DevTools ...");


Currently I see we can just add text.

cheers guys

Graham
graham42s
Newbie
 
Posts: 4
Joined: Tue Sep 14, 2021 2:38 am

Re: Adding images to the ContextMenu

Postby magreenblatt » Fri Sep 17, 2021 6:57 am

It is possible in Chromium but not currently supported by the CEF API. The implementation would likely require use of the Views framework.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Adding images to the ContextMenu

Postby graham42s » Fri Sep 17, 2021 8:08 am

Thank you for info Marshall :)

Regards

Graham
graham42s
Newbie
 
Posts: 4
Joined: Tue Sep 14, 2021 2:38 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 43 guests