Pnl.Initialize("") 'init staff panel
Pnl.Color=Colors.Red
Activity.AddView(Pnl,0,0,40%x,40%y)
Cnv.Initialize(Pnl) 'init canvas for drawing on it
Pth.Initialize(5%x,15%y) 'draw a line segment
Pth.LineTo(15%x,15%y)
Cnv.drawPath(Pth,Colors.Yellow,False,1)
Pnl.Invalidate
Msgbox("","Drawn?")
Cnv.drawPath(Pth,Colors.Red,False,1)
Pnl.Invalidate
Msgbox("","Removed?")
Pth.Initialize(5%x,15%y) 'redraw the line segment
Pth.LineTo(15%x,15%y)
Cnv.drawPath(Pth,Colors.Yellow,False,1)
Pnl.Invalidate
Msgbox("","Redrawn?")