drawingarea question
Posted
#1
(In Topic #827)
Regular

A simple form with DrawingArea1 on it
and
Code
Public Sub DrawingArea1_Draw()
Draw.Text("XXXX",10,10,20,20)
End
Posted
Guru

Try this code and then resize the Form. It will be in the hundreds in no time.
Sorry, I don't know why this happens, I can only guess this is due to the Form arranging its items.
Code (gambas)
- DrawingArea1 As DrawingArea
- .Arrangement = Arrange.Vertical
- .H = 500
- .W = 700
- .Padding = 5
- .H = 56
- .W = 100
- .H = 56
- .W = 100
- .Alignment = Align.Center
- Inc iCount
- Paint.begin(DrawingArea1)
- Paint.Text("XXXX", 10, 10, 20, 20)
- Paint.Stroke
- Paint.End
1 guest and 0 members have just viewed this.


