Coordinates arrow cursor - vector graphics

This forum is for eXpress++ general support.
Post Reply
Message
Author
Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Coordinates arrow cursor - vector graphics

#1 Post by Victorio »

Hi.
I am simple creating viewer/editor for digital maps and have some problems with justify coordinates.
I must recalculating coordinates from screen pixels to cadastral coordinates, this works correct.

But I do not know how I can programatically change cursor type arrow to cross. I know this can change in windows settings but can this change from my app ?
And other problem when I have cursor type arrow and pict to some point, his coordinates is not direct on spike arrow, but some in arrow. How can calculate exactly where is center of arrow ?
Now I must use some coeficient to modify pick point, but this can be not same on other PC with other screen resolution.

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Coordinates arrow cursor - vector graphics

#2 Post by rdonnay »

You need to add your cross cursor to your .ARC file.

Look at \exp20\lib\express.arc to see how pointers are added.
You will need to fine the appropriate *.CUR file for your cross.

If you are using eXpress++ commands to make your parent object for your vector graphics, then use the CURSOR clause of the DC* command to assign the cursor, otherwise you will need to use <obj>:setPointer(nCursor).

If using eXpress++, you would use a custom handler with the DCREAD GUI .. HANDLER clause, to test the xbeM_Motion event, otherwise if you have your own event loop you can do it with the AppEvent() function. This would give you the cursor coordinates.
The eXpress train is coming - and it has more cars.

Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Coordinates arrow cursor - vector graphics

#3 Post by Victorio »

Roger, thank you very much, this (express.arc) I am searching.
I will try it.

Post Reply