Results 1 to 7 of 7

Thread: Problem with showcursor

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    New York
    Posts
    32

    Post

    I'm using this:
    showcursor false
    why doesn't this work?

  2. #2
    Lively Member
    Join Date
    Jun 1999
    Posts
    120

    Post

    there seem to be no "ShowCursor"
    Event, Method or Function...
    as far as I can remember...

    Edited by KenX on 03-13-2000 at 04:39 AM

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    When you say it doesn't work, do you mean it gives you an error or simply doesn't do anything at all? Also, did you declare the ShowCursor API?

  4. #4
    Lively Member
    Join Date
    Mar 2000
    Posts
    82

    Post

    from vbapi.com:

    Declare Function ShowCursor Lib "user32.dll" (ByVal bShow As Long) As Long

    ShowCursor either shows or hides the mouse cursor. This is not done directly, but rather by incrementing or decrementing a counter. Each function call raises or lowers the counter by 1. If the counter is negative, the cursor is invisible. It if it non-negative, the cursor is visible. The function returns the value of the counter after changing it.


    dim counter as long
    Do
    counter = ShowCursor(0) ' decrement by 1
    Loop Until counter < 0
    ' keep looping until cursor 'is 'hidden


  5. #5

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    New York
    Posts
    32

    Post

    This is what i have. Other than, of course, the api string.

    as a global variable i have
    Dim counter as Long

    then, i have

    do
    counter = showcursor(0)
    loop until counter < 0

    later, to make it visible again, i do this

    do
    counter=showcursor (1)
    loop until counter >=0

    It won't work. I don't know why.

  6. #6
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    Post

    I dont know what exactly is in ur code but , u must know that the ShowCursor function works only in And ON ur program , so if u are trying to hide the cursor in windows (desktop ... etc ... ) this function wont work otherise on ur program forms it should

    - regards -
    - razzaj -

  7. #7

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    New York
    Posts
    32

    Post

    im just trying to get it to go away in my program, but it doesn't work. everywhere i've checked for this code shows me exactly what i have, but it doesn't work.

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