ScrollView ထည့္ျခင္း
ScrollView ထဲမွာ 30 buttons ထည့္ျပထားပါတယ္။
1. AddScrollView(scrollViewName,left,top,width,height,parent)
2. GetPanel(scrollViewName,panelName)
3. SetHeight(panelName,heightValue)
ကိုယ္ထည့္မဲ့ view ေတြ အတြက္ လံုေလာက္တဲ့ height ကို သတ္မွတ္ေပးပါ။
4. panelName ထဲကို ကိုယ္ႀကိဳ က္တဲ့ view ေတြ ထည့္ပါ။
=======================
AddscrollView("scr",0,0,100%x,100%y,"")
getPanel("scr","pnl")
Setheight("pnl",30*10%y)
for i=0 to 29
AddButton("btn" & i, 10%x, i*10%y, 80%x, 10%y, "pnl")
SetText("btn" & i,"Button " & i)
next
==============
No comments:
Post a Comment