Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-12-2015, 13:30   #16
Registered User

Join Date: Nov 2015
Posts: 22
Re: Plugin - Grabbing correct cursor lat/lon

I have not tried different mice, but based on your suggestion, I opened up the context menu with the keyboard key.
The values still jump.

I can leave the mouse in place, and alternate between ESC and context-menu key on the keyboard.
Values jump back and forth, but only if OpenGL is unchecked.
When I go in settings and check it, no issue...

- Chandler
__________________

__________________
dachancellor is offline   Reply With Quote
Old 10-12-2015, 21:57   #17
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: Plugin - Grabbing correct cursor lat/lon

Chandler...

I think I figured this out.

MSW occasionally send a mouse event with non-sense coordinates on right click. Dunno why....

So, I just filter them out. Please try a build of 4.1.1108 from current github master, and let me know if it is different. Hopefully it works for your PlugIn now.

Thanks
Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 11-12-2015, 02:58   #18
Registered User

Join Date: Jan 2011
Location: UK/France
Boat: Gib'Sea 402
Posts: 217
Re: Plugin - Grabbing correct cursor lat/lon

I do get a small shift with OpenGL off but it's a very consistent amount, so the coordinates can't be "nonsense".
__________________
hoolie is offline   Reply With Quote
Old 11-12-2015, 07:58   #19
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: Plugin - Grabbing correct cursor lat/lon

hoolie...

"nonsense" in the sense that the mouse position coordinates (on screen) are negative. AFAICT, there is no such thing as negative window coordinates. OCPN dutifully calculates the lat/lon by doing the math, however.

Dave
__________________
bdbcat is offline   Reply With Quote
Old 12-12-2015, 04:44   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
Re: Plugin - Grabbing correct cursor lat/lon

What is MSW, please?
__________________
rgleason is offline   Reply With Quote
Old 12-12-2015, 04:49   #21
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,761
Re: Plugin - Grabbing correct cursor lat/lon

MicroSoftWindows
__________________
bcn is offline   Reply With Quote
Old 12-12-2015, 13:29   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
Re: Plugin - Grabbing correct cursor lat/lon

Oh. Should have known! .... Thanks
__________________
rgleason is offline   Reply With Quote
Old 15-12-2015, 06:12   #23
Registered User

Join Date: Nov 2015
Posts: 22
Re: Plugin - Grabbing correct cursor lat/lon

Quote:
Originally Posted by bdbcat View Post
So, I just filter them out. Please try a build of 4.1.1108 from current github master, and let me know if it is different. Hopefully it works for your PlugIn now.

Sorry Dave, I'm just getting back into work.
I'll download the latest master and give it a shot.
I'll report back shortly.

V/r,
Chandler
__________________
dachancellor is offline   Reply With Quote
Old 15-12-2015, 08:43   #24
Registered User

Join Date: Nov 2015
Posts: 22
Re: Plugin - Grabbing correct cursor lat/lon

Dave,

I tried the latest build from Github, and it worked !
No jumps on right click, regardless of OpenGL setting.
My plugin now grabs the correct value.

Thanks for looking into this issue and fixing it.

V/r,
Chandler
__________________

__________________
dachancellor is offline   Reply With Quote
Reply

Tags
plug

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Distance Between Two Points by Lat/Lon onestepcsy37 Navigation 25 02-12-2017 19:19
Lat and Lon Needed sadia Atlantic & the Caribbean 2 23-09-2011 22:11
Display of Lat and Lon ? gmac52 OpenCPN 9 28-05-2011 12:47
Lat / Lon Grids with C Map 93 r.fairman OpenCPN 4 10-11-2010 15:32
Distance from Lat/Lon GordMay The Library 0 30-06-2005 19:27



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 04:46.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.