0
如何通過減去列表控件組來顯示列表控件?如何通過減去列表控件組來顯示列表控件? - livecode
這裏我的代碼:
on refreshlistoj idCardCur
set the dgData of grp "dgG" of card "Main" of stack stackmain to get_elementtodg(idCardCur)
end refreshlistoj
function get_elementtodg namecurrent
if namecurrent is not empty then
set the dgData of group "dgG" of stack stackmain to empty
put the number of controls of card ID namecurrent of stack stackname into numCon
repeat with crd = 1 to numCon
put the name of control crd of card ID namecurrent of stack stackname into theDataA[crd]["Col 1"]
put the short name of control crd of card ID namecurrent of stack stackname into theDataA[crd]["Col 2"]
end repeat
return theDataA
end if
end get_elementtodg
我的代碼有節目單的所有控件。
我之所以要這樣做,是因爲我想讓它像Livecode中的項目瀏覽器一樣。 – KemChat
如果你只需要一個完整的控件列表,它不只是關於數據網格,那麼我認爲我的例子就足夠了。你可以想象我們如何自己在數據網格中顯示數據。 – Mark
謝謝。 我有問題要問你。現在,我可以輕鬆地進行滾動組,並且可以減輕你在IOS上滑動時的感覺,但是我不能。你可以爲我示範嗎? – KemChat