[Gambas-user] Gambas and Mousepointer

Benoit Minisini gambas at ...1...
Thu Jul 31 09:07:57 CEST 2008


On jeudi 31 juillet 2008, Stefan Miefert wrote:
> Hello,
>
> i tryy xcursorgen  but the fileformat  isnt accepted by gambas?! What is
> the right format ?!
>

Did you look at the documentation of the Cursor class?

First you load a Picture object, in any format supported by the underlying 
toolkit.

  MyPicture = Picture.Load(...)

Then you create a cursor by specifying an optional hotspot.

  MyCursor = NEW Cursor(MyPicture, X, Y)

Finally you affect the cursor to the control.

  MyControl.Cursor = MyCursor

Regards,

-- 
Benoit Minisini




More information about the User mailing list