请教:Delphi中一些控件的刷新问题...谢谢 |
尚未結案
|
Perva
一般會員 ![]() ![]() 發表:13 回覆:9 積分:4 註冊:2003-03-31 發送簡訊給我 |
|
william
版主 ![]() ![]() ![]() ![]() ![]() 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
|
Perva
一般會員 ![]() ![]() 發表:13 回覆:9 積分:4 註冊:2003-03-31 發送簡訊給我 |
|
william
版主 ![]() ![]() ![]() ![]() ![]() 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
You may include Application.ProcessMessages; within your loop to allow other controls in repainting itself. Beware of any unexpected events (e.g. button/menuitem click, etc.), so you would like to disable some controls. A better solution is to create a thread for your lengthly loop. Please note that VCL is not thread safe and you should always handle GUI in your main thread (i.e. using Synchorize in the thread for VCL update)
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |