有什么办法可以使TGraphicControl绘一次后就记住, 一直保留并显示上次绘制内容?
TGraphicControl 之类的控件都是在Paint方法中用 Canvas 绘制的方式来显示内容;
有没有什么办法,让它被绘制一次后,保持其内容,直到下次被绘制为止?
例如我在Paint方法中用 Canvas.textout 在 TGraphicControl 上写了一个'test';
然后我控制此后paint方法都不再调用canvas绘制的'test'的代码
然后,我在button.onclick事件中用 Graphiccontrol.left := graphicControl.left+1 来移动 GraphicControl
由于我使它只paint一次,
所以,我移动GraphicControl后,那个 'test' 就消失了。
有什么办法可以使它绘一次后就记住,
直到下一次绘制为止,一直保留并显示上次绘制内容?