Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

Problem with OpenGLContext's mouse events

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco Alvarado

Hello!

I'm making an application for MacOS X and Windows that uses OpenGLContext. The 3D rendering is working perfectly in both platforms, my problem is with the mouse events in Mac.

For example, whenever I click on the window, OnMouseDown is triggered only the first time. If I keep clicking, it isn't called again. But, if I focus on another window, and click back on my application, the event is triggered only once again. In Windows, the same project doesn't have any problems. And OnKeyDown/OnKeyUp are working correctly in both platforms.

I'm assigning the mouse events to the component, not the form.

Any ideas how could I solve this? Is there any work around?

Thanks and best regards!
-Marco

Reply by email