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

About MDI Application

尚未結案
kikic99
一般會員


發表:10
回覆:4
積分:2
註冊:2003-07-24

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-03-23 11:05:26 IP:218.16.xxx.xxx 未訂閱
1. MainForm of MDI Application has windows menu,after fsMDIChildForm create,system automanual add a TMenuitem into windows menu of fsMDIForm, How to control to add automanual, or not add TMenuitem into windows menu of fsMDIForm? 2. new MDI Application,place WebBrowser1 on mainForm,create Form2 which to be set fsMDIChild,when mainForm call Form2,how to display Form2 on WebBrowser1, not under WebBrowser1? 發表人 - kikic99 於 2004/03/23 11:34:01
領航天使
站長


發表:12216
回覆:4186
積分:4084
註冊:2001-07-25

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-03-23 18:42:55 IP:192.168.xxx.xxx 未訂閱
1.第一個問題有點看不太懂,是不是要問如何不要讓Child Form的MainMenu選單加到主Form的MainMenu選單中? 2.第二個問題我問過了,請見:http://delphi.ktop.com.tw/topic.php?TOPIC_ID=43472 ~~~Delphi K.Top討論區站長~~~
------
~~~Delphi K.Top討論區站長~~~
kikic99
一般會員


發表:10
回覆:4
積分:2
註冊:2003-07-24

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-03-24 11:26:20 IP:61.142.xxx.xxx 未訂閱
>1.第一個問題有點看不太懂,是不是要問如何不要讓Child Form的MainMenu選單>加到主Form的MainMenu選單中? I want to know: How to control to add automanual, or not add caption of fsMDIChildForm into windows menu (TMenuitem) of fsMDIForm? Thanks!
領航天使
站長


發表:12216
回覆:4186
積分:4084
註冊:2001-07-25

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-03-24 12:00:01 IP:192.168.xxx.xxx 未訂閱
引言: >1.第一個問題有點看不太懂,是不是要問如何不要讓Child Form的MainMenu選單>加到主Form的MainMenu選單中? I want to know: How to control to add automanual, or not add caption of fsMDIChildForm into windows menu (TMenuitem) of fsMDIForm?
喔,看懂了! 您可以用TMenuItem的GroupIndex屬性來控制要不要加入MainForm的MainMenu中 GroupIndex編號相同的就會覆蓋 Try It PS:原文解說 Use GroupIndex to control how menus are merged. In applications that contain multiple forms, items from the menus of secondary forms can be merged into the application? main menu as those forms become active. MDI applications always merge the menus of child windows with the main menu of the parent window. By default, all menu items in a menu bar (main menu) have the same GroupIndex value. To use GroupIndex to merge menus, set the GroupIndex value of each successive menu item to a value equal to or greater than that of the previous menu item. ~~~Delphi K.Top討論區站長~~~
------
~~~Delphi K.Top討論區站長~~~
kikic99
一般會員


發表:10
回覆:4
積分:2
註冊:2003-07-24

發送簡訊給我
#5 引用回覆 回覆 發表時間:2004-03-24 13:47:53 IP:61.142.xxx.xxx 未訂閱
>您可以用TMenuItem的GroupIndex屬性來控制要不要加入MainForm的MainMenu中 GroupIndex編號相同的就會覆蓋    But my fsMDIChildForm has not Menu, it's only caption of my fsMDIChildForm to be Added automanual.     發表人 - kikic99 於 2004/03/24 14:26:49
Miles
尊榮會員


發表:27
回覆:662
積分:622
註冊:2002-07-12

發送簡訊給我
#6 引用回覆 回覆 發表時間:2004-03-24 20:59:18 IP:218.160.xxx.xxx 未訂閱
Hi kikic99 : Set MDIMainForm's property "WindowMenu" to one appear MenuItem and try it. 我不是高手, 高手是正在銀幕前微笑的人. 發表人 - miles 於 2004/03/24 20:59:59
------


我不是高手, 高手是正在銀幕前微笑的人.
kikic99
一般會員


發表:10
回覆:4
積分:2
註冊:2003-07-24

發送簡訊給我
#7 引用回覆 回覆 發表時間:2004-03-25 09:47:39 IP:218.16.xxx.xxx 未訂閱
引言: Hi kikic99 : Set MDIMainForm's property "WindowMenu" to one appear MenuItem and try it. 我不是高手, 高手是正在銀幕前微笑的人. 發表人 - miles 於 2004/03/24 20:59:59
我想有的子窗体可以add caption在windowMenu,有的子窗体不可以,怎么控制?
Miles
尊榮會員


發表:27
回覆:662
積分:622
註冊:2002-07-12

發送簡訊給我
#8 引用回覆 回覆 發表時間:2004-03-25 12:10:34 IP:218.160.xxx.xxx 未訂閱
Hi kikic99 : 由於我們屬性是設定在MainForm, 所以基本上只要Owner是MainForm的MDIChildForm都會自動加上去. 我不是高手, 高手是正在銀幕前微笑的人. 發表人 - miles 於 2004/03/25 12:12:52
------


我不是高手, 高手是正在銀幕前微笑的人.
kikic99
一般會員


發表:10
回覆:4
積分:2
註冊:2003-07-24

發送簡訊給我
#9 引用回覆 回覆 發表時間:2004-03-26 10:51:32 IP:61.142.xxx.xxx 未訂閱
引言: Hi kikic99 : 由於我們屬性是設定在MainForm, 所以基本上只要Owner是MainForm的MDIChildForm都會自動加上去. 我不是高手, 高手是正在銀幕前微笑的人. 發表人 - miles 於 2004/03/25 12:12:52
1.我的MDIChildForm的Owner都是MainForm 2.我就是不想所有的MDIChildForm都自動加上去,我想要其中一只不加上去,怎么作?
Miles
尊榮會員


發表:27
回覆:662
積分:622
註冊:2002-07-12

發送簡訊給我
#10 引用回覆 回覆 發表時間:2004-03-26 15:12:09 IP:218.160.xxx.xxx 未訂閱
Hi kikic99 您好: 這恐怕有點難, 看看TeamB人員的解答 http://216.101.185.148/scripts/isapi.dll/article?id=322306B9&article=2427243 我不是高手, 高手是正在銀幕前微笑的人.
------


我不是高手, 高手是正在銀幕前微笑的人.
系統時間:2024-06-21 14:06:52
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!