[Gambas-user] draw question

Jochen Georges jochen.georges at ...22...
Tue Dec 10 23:18:10 CET 2002


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




More information about the User mailing list