per fare un rettangolo colorato:

Syntax
object.Line [Step] (x1, y1) [Step] - (x2, y2), [color], [B][F]


color:
Optional. Long integer value indicating the RGB color used to draw the line. If omitted, the ForeColor property setting is used. You can use the RGB function or QBColor function to specify the color.



però mi sa che non lo riempie di quel colore ma lo usa per il tratto (il bordo)

:P