Re: mouse coordinates
Posted in 1997
Topics: Stored Procedures & SPL
Billy Wheeler wrote: > > On 7 May 97 at 14:43, David Bonnici wrote: > > > Does anyone know how to get the mouse pointer coordinates (in NewEra) or > > using C++ ? > > If you find this one out, *please* forward the answer to me as > well... > > -- > Ciao, > Billy > > Nose to the ground and ear to the grindstone in: Kuwait City > > TAURUS > Apr. 20 - May 20 > You are practical and persistent. You have dogged > determination and work like hell. Most people > think you are stubborn and bullheaded. You are > nothing but a goddam communist. Ok... type this function in your newera code... You have to compile to c code for it to work..... FUNCTION getcursorposition() RETURNING Integer,Integer VARIABLE x,y INTEGER BEGIN_C { POINT *mypoint; (void)GetCursorPos(mypoint); x = (int)(mypoint->x); y = (int)(mypoint->y); } END_C RETURN x,y END FUNCTION There... now if you paste a button and in the activate handler type: DISPLAY getcursorposition() you should see the x and y positions... I am trying to implement timers in NewEra for the bubble sort of help.. did any one manage yet ?? David -- Hey Billy, you owe me one !!