帮解释下面delphi代码,特别是那个Update。刚开始转delphi
oCopyProgressObj:=TCopyProgressForm.Create(Application);oCopyProgressObj.Show;oCopyPr...
oCopyProgressObj := TCopyProgressForm.Create(Application);
oCopyProgressObj.Show;
oCopyProgressObj.Update; 展开
oCopyProgressObj.Show;
oCopyProgressObj.Update; 展开
3个回答
展开全部
oCopyProgressObj := TCopyProgressForm.Create(Application);创建Form对象
oCopyProgressObj.Show; 这个是显示
oCopyProgressObj.Update;这个就要看TCopyProgressForm这个了
TCopyProgressForm是自定义的控件吧?不是delphi本身有的吧?我的delphi7没有这个控件
如果是wincontrol的update是这样描述的:
Description
Update repaints any part of the control surface that is out of date. Normally, updates occur automatically, but an Update call may be necessary before lengthy processing that might interfere with automatic updates. Calling Update unnecessarily can increase overhead and cause screen flicker.
Update only repaints areas of the control the have been determined to be out of date. To force immediate repainting of the entire control, call the Repaint method. To notify a control that it is out of date (without forcing an immediate repaint), call the Invalidate method.
Form5.Update; // force display of Form5
oCopyProgressObj.Show; 这个是显示
oCopyProgressObj.Update;这个就要看TCopyProgressForm这个了
TCopyProgressForm是自定义的控件吧?不是delphi本身有的吧?我的delphi7没有这个控件
如果是wincontrol的update是这样描述的:
Description
Update repaints any part of the control surface that is out of date. Normally, updates occur automatically, but an Update call may be necessary before lengthy processing that might interfere with automatic updates. Calling Update unnecessarily can increase overhead and cause screen flicker.
Update only repaints areas of the control the have been determined to be out of date. To force immediate repainting of the entire control, call the Repaint method. To notify a control that it is out of date (without forcing an immediate repaint), call the Invalidate method.
Form5.Update; // force display of Form5
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
oCopyProgressObj := TCopyProgressForm.Create(Application); //创建窗体
oCopyProgressObj.Show; //窗体显示
oCopyProgressObj.Update; //窗体更新
oCopyProgressObj.Show; //窗体显示
oCopyProgressObj.Update; //窗体更新
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询