типа на клик исполняется этот код
| Цитата | with drawgrid1 do begin point1.x:=x*(DefaultColWidth+GridLineWidth); point1.y:=y*(DefaultRowHeight+GridLineWidth); Canvas.Penpos:=point1; Canvas.pen.Color:=clPurple; Canvas.LineTo((x+1)*(DefaultColWidth+GridLineWidth), (y+1)*(DefaultRowHeight+GridLineWidth)); point1.x:=(x+1)*(DefaultColWidth+GridLineWidth); point1.y:=y*(DefaultRowHeight+GridLineWidth); Canvas.PenPos:=point1; Canvas.LineTo(x*(DefaultColWidth+GridLineWidth), (y+1)*(DefaultRowHeight+GridLineWidth)); end; |
при следующем клике предыдущий рисунок исчезает. ну, наверна, как сохранять рисунок дольше? |