Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How can I use dbChangeMouse(int iCursor)??? Help please...

Author
Message
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 4th Feb 2010 14:51
How can I use dbChangeMouse(int iCursor)???
I mean use iCursor ???

(((dbChangeMouse
This command will change the cursor that belongs to the mouse pointer. A value of zero uses the applications arrow cursor and a value of one will use the hourglass cursor. Values 2 to 31 are custom cursors that can be specified in the project media section and selected with this command.
Syntax
void dbChangeMouse ( int iCursor ) )))


Please don't suggest me that way:

extern HCURSOR g_ActiveCursor;
HCURSOR hCur = LoadCursorFromFile("MyCur.ANI");
g_ActiveCursor = hCur;
SetCursor(hCur);

this is not works on some PC's correctly.

And dbPasteSprite(i,dbMouseX(),dbMouseY()); - this is not a way at all (specialy in windowed mode).
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 4th Feb 2010 17:56
i think you can use dbLoadImage(number, filepath), and then use dbChangeMouse(number)

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.

Login to post a reply

Server time is: 2024-10-01 23:37:53
Your offset time is: 2024-10-01 23:37:53