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

各位大侠,如何设计可移动的工具条啊!

答題得分者是:william
HarryZhang
一般會員


發表:19
回覆:25
積分:8
註冊:2003-01-03

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-07-24 09:04:04 IP:61.144.xxx.xxx 未訂閱
各位大侠,如何设计可移动的工具条啊! Harry Zhang
------
Harry Zhang
william
版主


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

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-07-24 10:31:06 IP:147.8.xxx.xxx 未訂閱
1) put a TCoolBar (CoolBar1) on a form (Form1) 2) set DragKind of CoolBar1 to dkDock 3) set DragMode of CoolBar1 to dmAutomatic 4) put a TToolBar (ToolBar1) inside CoolBar1 5) set Align of ToolBar1 to alClient 6) create the button on ToolBar1 7) set DockSite of Form1 to True    Now you get a dockable toolbar 
HarryZhang
一般會員


發表:19
回覆:25
積分:8
註冊:2003-01-03

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-07-24 15:01:14 IP:218.17.xxx.xxx 未訂閱
if I don't use coolbar. then it will not able to drag ,right? but the toolbar in the picture seems that it is not use coolbar.and it may connect every direction. Harry Zhang
------
Harry Zhang
william
版主


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

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-07-24 15:19:10 IP:147.8.xxx.xxx 未訂閱
引言: if I don't use coolbar. then it will not able to drag ,right? but the toolbar in the picture seems that it is not use coolbar.and it may connect every direction. Harry Zhang
I do think it is a ToolBar placed inside CoolBar with both EdgeInner and EdgeOuter set to esNone. Without a CoolBar, a ToolBar can be made dockable also. Just set the DragMode and DragKind of the ToolBar should work. You may need to write some code if you want to dock the bar onto the edge of the form only.
HarryZhang
一般會員


發表:19
回覆:25
積分:8
註冊:2003-01-03

發送簡訊給我
#5 引用回覆 回覆 發表時間:2003-07-24 16:29:39 IP:218.17.xxx.xxx 未訂閱
那么它为什么可以吸附在这个form的四周呢?大部分仅仅在顶部! Harry Zhang
------
Harry Zhang
william
版主


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

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