[Gambas-devel] Custom Cursors
Fabien Bodard
abidoo.too at ...4...
Thu Jan 15 23:37:25 CET 2004
Le Jeudi 15 Janvier 2004 22:51, Nigel Gerrard a écrit :
> Hello Benoît.
>
> I noticed recently that there was a request for the ability to set the
> cursor to a user defined bitmap instead of the standard set. You indicated
> that this would not be high on your list of todo. Hopefully I can help.
>
> Attached is a new METHOD for the Widget class.
>
> The syntax for MouseIcon is:
>
> .MouseIcon("ImageMap"[,HotspotX, HotspotY, "BitMask"])
>
> I have tested using 32x32 bit .png, .xpm and .xbm. It is important that
> the bits are either black or white. If the BitMask is not given, the
> ImageMap is also used as the BitMap which means that the Icon will be
> completely transparent (containing no white.)
>
> If this is not quite what you were looking for, give me a clue and I'll
> have another attempt.
>
> All the best
>
> Nigel
Hi Nigel
Why only in White and Black ?
it look poor no ?
Nevertheless it's a new step... good job ! it work !
(i can't find gb.qt.help... where is this file ?)
Fabien Bodard
More information about the Devel
mailing list