How to add owner menu in context menu(right-click)

Having problems with building or using the JCEF Java binding? Ask your questions here.

How to add owner menu in context menu(right-click)

Postby minteliu » Tue Jul 26, 2016 8:43 pm

I want to overload this menu items in context menu(right-click), but I only can hide the whole context menu , I don't know how to add my owner munu items in context menu ,can you help me?
minteliu
Newbie
 
Posts: 9
Joined: Tue Jul 26, 2016 8:34 pm

Re: How to add owner menu in context menu(right-click)

Postby Czarek » Wed Jul 27, 2016 1:04 am

Use the model arg (CefMenuModel) in CefContextMenuHandler::OnBeforeContextMenu to modify items.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: How to add owner menu in context menu(right-click)

Postby minteliu » Wed Jul 27, 2016 7:31 pm

Czarek wrote:Use the model arg (CefMenuModel) in CefContextMenuHandler::OnBeforeContextMenu to modify items.


Can you give me a demo? or tell me how to add and remove items? thx~
minteliu
Newbie
 
Posts: 9
Joined: Tue Jul 26, 2016 8:34 pm


Re: How to add owner menu in context menu(right-click)

Postby minteliu » Thu Jul 28, 2016 12:41 am

minteliu
Newbie
 
Posts: 9
Joined: Tue Jul 26, 2016 8:34 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 11 guests