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 / Created hand To use as cursor now how to add it so I can.

Author
Message
Dragon Tiger Wolf Bald Eagle
16
Years of Service
User Offline
Joined: 5th Feb 2008
Location:
Posted: 23rd Jun 2008 03:07
Created hand To use as cursor now how to add it so I can use it in the game. It says this

Values 2 to 31 are custom cursors that can be specified in the project media section and selected with this command.


But I am not sure exactly how to do that. Some help would be nice Please

The quality of what a man gives without seeking anything in return shows his integrity.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 23rd Jun 2008 03:19
Quote: "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.
"


This is from the information thing. I think this explains it all.

Your signature has been erased by a mod - 120 high maximum please
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 23rd Jun 2008 03:56
i would look into turning the mouse cursor off and replacing it with a sprite at the mousex, mousey locations. That will give you greater flexibility

System
MacBook Pro
Windows XP Home on Boot Camp
Dragon Tiger Wolf Bald Eagle
16
Years of Service
User Offline
Joined: 5th Feb 2008
Location:
Posted: 23rd Jun 2008 04:07
That works thanks. If you would also please enlighten me on how to change the mouse cursor the Project media dbChangeMouse(); Exectra way please. Best way to know for sure it will work is to do it yourself then explain how thanks

The quality of what a man gives without seeking anything in return shows his integrity.
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 26th Jun 2008 22:45
That documentation is unconverted from DBPro. Within the IDE, you could specify .cur or .bmp files to use as cursors, information about which would be stored the in the project file, and could then be used with 'change mouse'. This does not apply to VC++ or the GDK. As far as I know, all you can do with dbChangeMouse is go from the pointer to a waiting cursor. (the hourglass)


My site, for various stuff that I make.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 26th Jun 2008 23:02
You would use it by first loading it using the user32 function LoadImage, then setting it using the user32 function, SetCursor

The HINSTANCE needed for LoadImage can be gotten from GlobStruct, it is hInstance.

Login to post a reply

Server time is: 2024-11-20 15:15:03
Your offset time is: 2024-11-20 15:15:03