Coder Social home page Coder Social logo

Comments (7)

dliw avatar dliw commented on August 24, 2024

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.

zbyna avatar zbyna commented on August 24, 2024

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.

AleksandrJS avatar AleksandrJS commented on August 24, 2024

Thanks.

I will use Javascript
and Intercepting events from application or form.

from fpcef3.

dliw avatar dliw commented on August 24, 2024

@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.

AleksandrJS avatar AleksandrJS commented on August 24, 2024

@dliw
Last question, please.
If the frame is on the form, the application can intercept events?

from fpcef3.

dliw avatar dliw commented on August 24, 2024

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.

AleksandrJS avatar AleksandrJS commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.