[Gambas-user] Paint.Rectangle question
Fabien Bodard
gambas.fr at ...626...
Wed Sep 30 12:26:24 CEST 2015
Paint.rectangle(x,y,width,height)
Paint.brush=paint.color(color.red)
Paint.fill(true) 'true maintain the current path active
Paint.brush=paint.color(yellow)
Paint.linewidth=2
Paint.Stroke
You will get a red rectangle with a two pix yellow border
Is Paint.Rectangle to draw a filled rectangle or an empty one?
I tried
Paint.LineWidth = 1
Paint.Color(Color.Black)
Paint.Rectangle(TabelleX, TabelleY, TblSpalteRechts[tblAnzSpalten]
- TabelleX, cy - TabelleY)
Paint.Fill()
and get a black filled rectangle. Even Paint.Color(Color.Transparent)
doesn't help.
Did I get this wrong, or is it buggy? Better to use Line? But then...
see my first question :)
Thanks for any help
Rolf
------------------------------------------------------------------------------
_______________________________________________
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