View Full Version : Change Mouse-Pointer to image

12-09-2004, 02:06 AM

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 ..

12-09-2004, 02: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...

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

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

12-11-2004, 12: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 ..