Re: TPopupMenu.popup doesnt work with CEF4Delphi
Posted: Thu Oct 31, 2019 1:20 pm
Hi,
Set a breakpoint inside the TWebBrowserFrame.ChromiumProcessMessageReceived procedure to check that the process message is received.
If you receive the message and the TPopupMenu doesn't show then try using the context menu provided by CEF.
You can customize that context menu as you like. Read this post for more details :
https://www.briskbard.com/forum/viewtop ... 1002#p4417
To show the CEF context menu you will need to call TChromium.SendMouseClickEvent.
The TChromium.SendMouseClickEvent parameters can be obtained by running the SimpleOSRBrowser demo and logging the values in these procedures when you click the right mouse button over the browser :
Set a breakpoint inside the TWebBrowserFrame.ChromiumProcessMessageReceived procedure to check that the process message is received.
If you receive the message and the TPopupMenu doesn't show then try using the context menu provided by CEF.
You can customize that context menu as you like. Read this post for more details :
https://www.briskbard.com/forum/viewtop ... 1002#p4417
To show the CEF context menu you will need to call TChromium.SendMouseClickEvent.
The TChromium.SendMouseClickEvent parameters can be obtained by running the SimpleOSRBrowser demo and logging the values in these procedures when you click the right mouse button over the browser :
- TForm1.Panel1MouseDown
- TForm1.Panel1MouseUp