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.
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)
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.
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)
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
How do you set a custom blank cursor in glfw or phoenix?Originally Posted by Delfi
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
Add 'windows' to the uses section and it'll work.Originally Posted by cairnswm
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
[quote="Traveler"]Add 'windows' to the uses section and it'll work.Originally Posted by cairnswm
[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)
OnSHow
screen.cursor := crnone;
OnClose
screen.cursor := crdefault;
The views expressed on this programme are bloody good ones. - Fred Dagg
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.Originally Posted by czar
Sorry
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
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.
Bookmarks