MozTW 討論區 https://forum.moztw.org/ |
|
不知道怎麼把 Drag & Drop 套用在 Tree... https://forum.moztw.org/viewtopic.php?f=18&t=21117 |
第 1 頁 (共 1 頁) |
發表人: | Merci chao [ 2007-12-05, 14:37 ] |
文章主題 : | 不知道怎麼把 Drag & Drop 套用在 Tree... |
不知道有沒有 "把 Drag & Drop 套用在 Tree" 的簡單實例能參考一下? 大概只是要把 Tree1 的項目移動到 Tree2,然後 Tree2 的項目能上下移動那樣 代碼: <tree hidecolumnpicker="true" height="100" seltype="single" width="100">
<treecols> <treecol id="Name" flex="1" primary="true" hideheader="true"/> </treecols> <treechildren id="tree1"> <treeitem label="item1"container="true"> <treechildren> <treeitem label="child"/> </treechildren> </treeitem> <treeitem label="item2"/> </treechildren> </tree> <tree hidecolumnpicker="true" height="100" seltype="single" width="100"> <treecols> <treecol id="Name" flex="1" primary="true" hideheader="true"/> </treecols> <treechildren id="tree2"> <treeitem label="item3"/> <treeitem label="item4"/> </treechildren> </tree> Menu Editor 太複雜了,不想看,而且看不明白 @@" MDC 裏 Drog & Drop 的文件也有看過一下,但不是太明白,所以想直接看一下實例來好好理解一下 ![]() |
發表人: | alex301 [ 2007-12-05, 15:44 ] |
文章主題 : | |
我知道 組織書籤 裡左右窗格就是用 Tree 來架構,而且我發現它支援 Drag & Drop... |
發表人: | Merci chao [ 2007-12-05, 17:43 ] |
文章主題 : | |
我想 FX 裏面的 tree 都很複雜吧... ![]() |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |