[Gambas-devel] Custom Cursors
Nigel Gerrard
nigel at ...2...
Fri Jan 16 11:04:21 CET 2004
>On Thursday, January 15, 2004 10:37 PM, Fabien Bodard wrote:
>Subject: Re: [Gambas-devel] Custom Cursors
>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 Fabien
>Why only in White and Black ?
It is a limitation with QT.
>it look poor no ?
Probably due to my poor looking drawings :-) but all the standard cursors
are the same.
>Nevertheless it's a new step... good job ! it work !
>(i can't find gb.qt.help... where is this file ?)
Nigel
More information about the Devel
mailing list