[Gambas-user] Custom mouse cursor

Jussi Lahtinen jussi.lahtinen at ...626...
Wed May 27 18:42:16 CEST 2009


Other old issue...
I don't know how I missed that documentation earlier...
But I still have issues with custom cursors.
What are supported picture formats? Or what I'm doing wrong?
My code:

Public aa As New Cursor(Picture.Load("test.png"))

DrawingArea1.Mouse = Mouse.Custom
DrawingArea1.Cursor = aa

Or;

DrawingArea1.Cursor = New Cursor(Picture.Load("test.png"))

Tried with many different formats.
With GTK+ signal 11, with Qt only buggy black&white picture.


Regards,
Jussi



On Wed, Mar 4, 2009 at 20:33, Jussi Lahtinen <jussi.lahtinen at ...626...> wrote:
> Hi!
>
> Me.Mouse = Mouse.Cross
> Works fine, but I need custom cursor.
>
> Me.Mouse = Mouse.Custom
> Me.Cursor = Picture.Load("pic.png")
> This is not working, of course...  class cursor has only two properties x, y.
>
> Where do I put the picture?
> Thanks!
>
>
> Jussi
>




More information about the User mailing list