Comments (7)
CEF does not provide any callback / information about mouse state (AFAIK), so there is no (easy) way to achieve this.
Additionally CEF is more of an embedded "program" than a regular control, so it expects to have full control over keyboard, mouse and in fact even over the main window it is embedded in (!).
So even if mouse handling could be added by directly accessing the window system (like X on Linux), I think this would lead to interference with CEF.
So, no I don't plan to add mouse events - sorry.
Depending on what you need the mouse event for, you could use the fpCEF OSR (off-screen-rendering) component instead.
from fpcef3.
As for mouse DOM events there was possibility to register so called event listener for particular event in CEF, but it was removed from CEF and fpCEF from 3.2454 see: https://bitbucket.org/chromiumembedded/cef/issues/933/provide-alternate-implementation-for
So there is possibility to realize that by java script engine in CEF but it does not seem like piece of cake activity 🙂 https://bitbucket.org/chromiumembedded/cef/wiki/JavaScriptIntegration.md
https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage#markdown-header-asynchronous-javascript-bindings
from fpcef3.
Thanks.
I will use Javascript
and Intercepting events from application or form.
from fpcef3.
@zbyna
Didn't think of that, but binding to javascript events indeed might be the best (but hard) way to go.
@AleksandrJS
Please note that the application and/or the form does not receive any events if the fpCEF component has focus.
You can close this issue if your question is answered.
from fpcef3.
@dliw
Last question, please.
If the frame is on the form, the application can intercept events?
from fpcef3.
Last question, please.
No problem, keep asking.
I don't really understand your question. Which "frame" on which "form" and what do mean by "intercepting events"?
Assuming you mean
- frame = fpCEF browser component = TChromium
- form = the form TChromium is parented to
- "intercepting events" = something like
TForm.FormMouseMove
As long as TChromium does not have the focus, all events will work normally. You can easily test the behaviour using the LCLSimple example.
from fpcef3.
Thank you.
You understand correctly.
If I fail to capture TCromium events, then I will use Javascript.
Best Regards,
Aleksandr.
from fpcef3.
Related Issues (20)
- EOSError HOT 9
- Making a Screenshot with OSR? HOT 2
- JavaScript Invoke Problem HOT 7
- cef_parse_csscolor not found? (fixed: use CEF 3.3029.1613.g22354a9) HOT 4
- TChromiumOSR subprocess not loading and high CPU usage HOT 4
- Sharing Framework and Resoure files HOT 4
- Broken Browser Links
- Using units on ARM HOT 1
- EOS Error!!! HOT 5
- Problems with the Component in Load event HOT 7
- Issue with TMyCefStringVisitor - TCefStringVisitorOwn - ICefStringVisitor HOT 4
- Problem running under Linux OS HOT 2
- we can not compile the CEF3 package in Windows 10 FPC version 3.3.1 (SVN 59585M) - FPC stack overflow HOT 3
- Console HOT 1
- Problems in visualization of https://read.amazon.com/
- Help with fpcef in new ubuntu versions - invalid node channel message
- Question - Project Descontinued? HOT 2
- why CEF version same with Chromium version in http://opensource.spotify.com/cefbuilds/index.html? HOT 2
- Any plans to update to current version? HOT 1
- Linux compilation error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpcef3.