請問呼叫dll的form可以設定parent嗎? |
答題得分者是:william
|
wwwbbs
初階會員 發表:41 回覆:59 積分:25 註冊:2003-05-23 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
MDI form or form inside panel? I think you can do it in 2 ways: 1) pass the global variable Application from you main form to the dll and assign it to the same global variable inside dll
2) build with runtime package IMHO, 2) is easier since in 1) the main form and the dll are running 2 different instances of VCL (something make screw up, e.g. is operator). Of course you need to pass the main form instance to the dll and make it its parent in both case.
|
wwwbbs
初階會員 發表:41 回覆:59 積分:25 註冊:2003-05-23 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |