Custom Cursors
Posted: Fri Aug 07, 2009 2:24 pm
by Chris Power >> Sun, 7 May 2000 2:03:38 GMT
The range of standard cursors supported by JADE and Win32 API doesn't include the Hand cursor commonly used for hyperlinks within browsers. Sure, if I hard-code a path to a cursor file I can use app.loadPicture and assign the result to a control's mouseCursor property, etc. But what if I want to load it without using an external file - as you'd do in C/C++ with application resources?
I can create a binary value with all the right bytes but I can't set its pictureType to 5 for "cursor". Curses. This is apparently set only when you load using the conventional approach.
Q: Is there any way of setting a Binary's pictureType?
Q: Alternatively, is there any way of locating the hand cursor in a standard app or dll and loading it?
Chris Power
cpower@unitec.ac.nz
The range of standard cursors supported by JADE and Win32 API doesn't include the Hand cursor commonly used for hyperlinks within browsers. Sure, if I hard-code a path to a cursor file I can use app.loadPicture and assign the result to a control's mouseCursor property, etc. But what if I want to load it without using an external file - as you'd do in C/C++ with application resources?
I can create a binary value with all the right bytes but I can't set its pictureType to 5 for "cursor". Curses. This is apparently set only when you load using the conventional approach.
Q: Is there any way of setting a Binary's pictureType?
Q: Alternatively, is there any way of locating the hand cursor in a standard app or dll and loading it?
Chris Power
cpower@unitec.ac.nz