TextOut is used to put text in graphics areas, so first make a graphics area;
DIM Image1 AS QCANVAS
Image1.PARENT = form
Image1.Left = 1
Image1.Top = 1
Image1.Width = 300
Image1.Height = 300
Image1.OnPaint = Image1.Paint
after the Form.ShowModal add a routine;
SUB Image1.paint
d$="whatever"
fntclr = &h503030 :
bckclr = &hffffff :
Image1.TextOut (20,20,d$,fntclr,bckclr)
END SUB
that's all really .....
|