SFML community forums

Help => Window => Topic started by: knoggly on August 20, 2014, 11:47:55 am

Title: MouseMessages missing in UserControl
Post by: knoggly on August 20, 2014, 11:47:55 am
Hello,

I'm using SFML to develop a .NET-Desktop Applikation that needs some sophisticated Graphics.
I integrated a SFML Renderwindow into a custom UserControl and use this UserControl inside my Form.

Things work well until i tried to catch DoubleClick-Events. I noted that as soon Windows recognizes a Click-Sequence as DoubleClick the second MousePress-Event is not raised from SFML.

What I expect:
press-release-press-release
What I get:
press-release-release

Additionally I printed out the windows-mouse-events and I noted that as soon windows recognizes two separate clicks, then SFML also generates the correct events.

Fast-Click:
SFML - Press
WIN - down
WIN - click
WIN - up
SFML - Release
WIN - down
SFML - Release
WIN - DBLClick
WIN - up

Slow-Click:
WIN - down
SFML - Press
SFML - Release
WIN - click
WIN - up
WIN - down
SFML - Press
SFML - Release
WIN - click
WIN - up


This problem doesn't exist when I dont't use the UserControl and a Form. So to me it seems related to the combination of both (Windows Forms + SFML).

Has anybody had similar experience or an idea how to solve this?

kind regards

knoggly