[Gambas-user] My first work

Benoit Minisini gambas at ...1...
Mon Jan 5 00:54:57 CET 2004


On Monday 05 January 2004 01:38, -=FoX=- wrote:
> ah, another strange thing with mouse pointer:
> DIM mypic AS Picture
> DIM mycursor AS Mouse
>
> mypic = Picture ["realpic.png"]
> 'then as doc explain:
> 'hmouse = NEW Mouse (Picture AS Picture [, X AS Integer, Y AS Integer])
> mycursor = NEW Mouse (mypic ,10 , 10)
>
> give me an error:
> Class 'Mouse' is static
> ?
>
> :(
>
> mypic = "
> mycursor = NEW Mouse
>
>

The documentation is not up to date. Try NEW Cursor() instead of NEW Mouse(). 
But you cannot use the cursor yet to assign it to a control !

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...





More information about the User mailing list