[Gambas-user] draw question
Marco Bauer
elentirmo at ...20...
Wed Dec 11 13:42:47 CET 2002
Hi Jochen,
you've to set the cached-propertie of your drawingarea to 'True'. Now
everything should work fine.
Gruß
Marco
Am Di 10 Dezember 2002 23:18 schrieb Jochen Georges:
> hi,
> you see I'm industrious, but stupid :(
>
> I#ve got a form with a button and a drawing area, when the button
> is clicked, a rectangle should be drawed.
>
> that's my code:
> STATIC PUBLIC SUB Main()
> DIM runform AS Form
> runform = NEW Fmain
> runform.show
> END
>
> PUBLIC SUB Button1_Click()
> da.Clear()
> Draw.Begin(da)
> Draw.Rect(5, 5, 8, 9)
> Draw.End
>
> END
>
>
> when i click the button the debugger says
> "Fmain.Button1_Click.13:Bad device"
>
> what's wrong?
> i had a look at the example ImageView, but i need more help at the
> moment.
>
> thanks a lot
> beste gruesse
> jochen
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list