Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Hide Windows Cursor

  1. #1
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Hide Windows Cursor

    How can you hide the windows cursor on the screen? I use an image as the cursor and want to ensure that the windows cursor doesn't flikker all the time.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  2. #2

    Hide Windows Cursor

    Do you mean the mouse or the little bar inside edit fields?

    For the mouse you can use ShowCursor(false), but I'm guessing you already knew that.

  3. #3
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Hide Windows Cursor

    Cant find ShowCursor

    Did find Input.Mouse.Hide; but this hides for all Windows windows not just the Phoenix Game Window.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  4. #4

    Hide Windows Cursor

    use a custom blank cursor.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  5. #5
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Hide Windows Cursor

    Quote Originally Posted by Delfi
    use a custom blank cursor.
    How do you set a custom blank cursor in glfw or phoenix?
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  6. #6

    Hide Windows Cursor

    Quote Originally Posted by cairnswm
    Cant find ShowCursor
    Add 'windows' to the uses section and it'll work.

    But now that the mouse subject has come up, I also noticed that in fullscreen it is possible to move the mouse beyond the window borders. :scratch:
    ie, if you move your cursus too far and you dont notice it, it may become lost.
    Also, in fullscreen mode it appears that the default windows cursor is not active. You can activate it using the ShowCursor function but that will leave a stationary cursor in the center of the screen.

    I wonder if its possible to turn the normal windows cursor on

  7. #7
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Hide Windows Cursor

    [quote="Traveler"]
    Quote Originally Posted by cairnswm
    Cant find ShowCursor
    Add 'windows' to the uses section and it'll work.
    [quote]

    Thanks

    Feels wrong though.... Dont think I should need then Windows unit for a Phoenix game.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  8. #8

    Hide Windows Cursor

    OnSHow
    screen.cursor := crnone;

    OnClose
    screen.cursor := crdefault;
    The views expressed on this programme are bloody good ones. - Fred Dagg

  9. #9
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Hide Windows Cursor

    Quote Originally Posted by czar
    OnSHow
    screen.cursor := crnone;

    OnClose
    screen.cursor := crdefault;
    Sorry, this is for Phoenix 2D game Engine not for normal forms. I should have made that clearer instead of presuming the fact that its in the Phoenix forum would indicate it.

    Sorry
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  10. #10
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Hide Windows Cursor

    I can help but read this a scratch my head. Phoenix 2D uses SDL for rendering, right?

    Are you now seeing inside of the sdl.pas unit?

    [pascal]SDL_ShowCursor(False);[/pascal]

    will hide the cursor. Of course it might help if you had sdl in your uses clause.
    Jason McMillen
    Pascal Game Development
    Co-Founder





Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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