Results 1 to 5 of 5

Thread: RESOLVED-Convert Long to Single for the GetCursorPos function

Threaded View

  1. #1

    Thread Starter
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694

    RESOLVED-Convert Long to Single for the GetCursorPos function

    Hello
    i am using the getcursorpos function to get the correct position
    of the mouse.
    the problem is it does not seem to show correct position.

    the getcursorpos returns a POINTAPI type which has a X as long and Y as long.

    I want the X,Y to get converted to Single.

    i tried form1.scalex(point.x,vblong,vbsingle)
    but it did not work.

    instead i used xsingle=15*xlong and it seems to quite work but not 100%.

    also how to i convert from twips to single ??

    thanks !!
    Last edited by alexandros; Apr 2nd, 2003 at 09:54 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width