PDA

View Full Version : Change Mouse-Pointer to image



Sunshine
12-09-2004, 03:06 AM
hi,

i am participating in writing an interface and i want the mouse-pointer to change to an image when a button is pressed .. how can i do this change??

thank you for your help ..

RigidBody
12-09-2004, 03:12 AM
depends on the OS.

in linux you can use XCreatePixmapCursor to create a new cursor and XDefineCursor to apply this cursor to a certain window.

and before someone else does it, i have to remark:

this is not an opengl related question...

Silkut
12-11-2004, 12:38 AM
in windows this is easy to change cursor if you're using Win32 lib

check the MSDN (http://www.msdn.microsoft.com) out

Sunshine
12-11-2004, 01:51 PM
thanx for your answers .. i did not knew that this is not open gl related, because we are programming this interface in open gl .. btw: we are using windows ..