Results 1 to 8 of 8

Thread: Why doesn't Show/Hide cursor not work?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Location
    Great White North, ey?
    Posts
    202

    Why doesn't Show/Hide cursor not work?

    Hi, I'm making a little game with DirectDraw and I use the: Public Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long

    then in the form load sub I type ShowCursor 0, and when I run my program the cursor is still there. WHy?? Help please!

    Thanks.

  2. #2
    Zaei
    Guest
    Works just fine for me. Might want to change the ShowCursor 0 to ShowCursor False. Dunno if that will fix it..

    Z.

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    This is kind of strange, but...

    This happened to me too when I had my Savage4 video card. When I got my GeForce2 it seemed to go away (I'm as confused about this as you guys are )
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Got some weird results with that too, although using DirectInput with almost-exclusive mouse access seemed to work (needed the mouse anyways )

    And calling that function when Windows processes the WM_SETCURSOR worked too, but that would be a little bit tricky in VB
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Location
    Great White North, ey?
    Posts
    202

    Thanks for the responses!

    About the video card, I already have a GeForce 2, so that is not the problem. Maybe there is a property setting on the Form somewhere that I have to set. I don't know.

    Thanks anyways!

  6. #6
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Maybe it's just one of those weird VB things. I wouldn't be surprised if it was VB who puts the cursor back
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Location
    Great White North, ey?
    Posts
    202

    HAHA, Just answered my own question.

    In order for the cursor to go away you have to use "ShowCursor (0)" - notice the 0 in parantathese. And I also put that statement in the DX_Init sub, NOT in the Form Load.

    Yeh, it must be one of those VB things

  8. #8
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540

    We're so helpful around here ;)

    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

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