線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1361
推到 Plurk!
推到 Facebook!

menu能否自由移動位置如拉到form下面?

答題得分者是:william
huangeider
高階會員


發表:288
回覆:492
積分:231
註冊:2003-02-26

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-03-25 12:04:16 IP:210.201.xxx.xxx 未訂閱
小弟想請教menu能否自由移動位置如拉到form下面? 應如何作? aric
william
版主


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

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-03-25 12:33:06 IP:147.8.xxx.xxx 未訂閱
The normal menu CANNOT be docked. I think what you want is docking menu? Create a TToolBar, add some buttons. Set the captions of the button as menu captions. Set ToolBar's properites: ShowCaptions to True, DragMod to dmAutomatic, DragKind to dkDock. Set the DropDown menu of the tool buttons to the proper popup menus. Set the form's DockSite to True. Now you should have a dockable menu.  > 發表人 -
Justmade
版主


發表:94
回覆:1934
積分:2030
註冊:2003-03-12

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-03-25 13:46:25 IP:218.16.xxx.xxx 未訂閱
如 william 所言, TMainMenu 是不可能變位置的,而 TToolBar 是一個不錯的做法。 在 Delphi 7 你也以用 ActionListManager ActionMainMenuBar ActionToolBar 去做一個非常好用的 Menu ToolButtons 系統,使用者甚至可以自由選擇顯示與隱藏棊單與 ToolButtons, 及像 Office 一樣只顯示常用的項目及▼符號讓使用者去叫出少用的項目。
系統時間:2024-05-16 11:55:55
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!