Search found 5 matches

by hwieser
Wed Nov 09, 2016 10:46 am
Forum: PTV xServer.NET (Admin=OH)
Topic: formsMap control, WinForms and Mouse Events
Replies: 8
Views: 18833

Re: formsMap control, WinForms and Mouse Events

Thanks, that works like a charm.
by hwieser
Mon Nov 07, 2016 9:22 am
Forum: PTV xServer.NET (Admin=OH)
Topic: formsMap control, WinForms and Mouse Events
Replies: 8
Views: 18833

Re: formsMap control, WinForms and Mouse Events

I've attached some code that I based on the Selection use case from the DemoCenter. I have made some adjustements like using the PreView-Mouse-Events and passing the wrappedmap to the constructor. I'm using Pins instead of FrameworkElements in my layer so that I can change the color rather than draw...
by hwieser
Fri Nov 04, 2016 1:15 pm
Forum: PTV xServer.NET (Admin=OH)
Topic: formsMap control, WinForms and Mouse Events
Replies: 8
Views: 18833

Re: formsMap control, WinForms and Mouse Events

Yep, I'm using the Right button also, works ok. I'm still having issues to draw the polygon though. It seems the embedded WPF control is drawn on top of whatever WinForms draws. Even overriding the OnPaint event of the formsMap doesn't yield any visible results for me. So I don't really get why the ...
by hwieser
Fri Nov 04, 2016 9:12 am
Forum: PTV xServer.NET (Admin=OH)
Topic: formsMap control, WinForms and Mouse Events
Replies: 8
Views: 18833

Re: formsMap control, WinForms and Mouse Events

That seems to work, but not all events are being passed on depending on the formsMap.MouseDragMode. When it's set to "None" the MouseLeftButtonDown doesn't fire, but the MouseLeftButtonUp does...? When I set the MouseDragMode to SelectOnShift like in the DemoCenter, the selection works, ki...
by hwieser
Thu Nov 03, 2016 3:39 pm
Forum: PTV xServer.NET (Admin=OH)
Topic: formsMap control, WinForms and Mouse Events
Replies: 8
Views: 18833

formsMap control, WinForms and Mouse Events

I'm trying to replicate the Selection use case from the demo application in WinForms using the formsMap control. I had to tweak the SelectInteractor a little bit to work with the mouse events from WinForms, but that's not really the issue. The problem is that the mouse-events don't fire at all. It s...