[Gambas-user] Easy way to create simple graphics

Fabien Bodard gambas.fr at gmail.com
Mon Aug 14 21:57:45 CEST 2023


with a drawingarea you have to use the Drawing Event

PUBLIC SUB DrawingArea1_Draw()
Paint.BackGround = Color.Red
Paint.Rect(25,25,10,10)
Paint.Stroke()
END

Le lun. 14 août 2023 à 21:04, Hartmut Wagener
<hartmut.w.wagener at t-online.de> a écrit :
>
> Hi,
>
> i am trying to get some easy graphics running.
>
> I want to create a program with a rectangualar area that i can use for
> the output of a graph.
>
> I have tried with
>
>
> public hpictre as picture
>
> hpicture=new picture(w,h,false)
>
> paint.begin(hpicture)
>
> .
>
> .
>
> .
>
> paint.end
>
>
> But i need a way to put this on a drawing-area, scroll-are or whatever.
> This worked somewhen this way
>
> Searching for help brings up tons of info about the old way to do
> drawing before Version3.
>
>
> Where can i find a good explanation on how to do some drawing/painting?
>
>
> Thanks
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----



-- 
Fabien Bodard


More information about the User mailing list