全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1052
推到 Plurk!
推到 Facebook!

請問呼叫dll的form可以設定parent嗎?

答題得分者是:william
wwwbbs
初階會員


發表:41
回覆:59
積分:25
註冊:2003-05-23

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-01-26 20:31:20 IP:61.64.xxx.xxx 未訂閱
請問各位前輩,我寫了一個含有Form的dll,當我從Form1呼叫dll Form的時候可以設定它的parent為Form1嗎?如果可以該如何實現呢?謝謝
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-01-27 09:46:59 IP:147.8.xxx.xxx 未訂閱
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

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-01-30 18:03:29 IP:61.62.xxx.xxx 未訂閱
謝謝william版主,我會試看看的,如果有問題再上來請教
系統時間:2024-05-07 17:35:28
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!