FlexView FlexView1 {
X = 11;
Y = 150;
Width = 317;
Height = 129;
FlexRecord FlexRecord1 {
FlexLabel FlexL_id {
Title = "商品ID";
}
FlexTextBox FlexTb_name {
Title = "商品名";
}
FlexTextBox FlexTb_price {
Title = "価格";
}
}
Function OnScrolled( e ) {
/* 行の位置を取得 */
^.Label3.Value = e.row;
}
}
/* 省略 */
TextBox:Number TextBox1 {
X = 124;
Y = 337;
Width = 48;
Height = 29;
HorizontalAlign = $RIGHT;
VerticalAlign = $CENTER;
FontSize = 14;
}
Button Button2 {
X = 223;
Y = 300;
Width = 83;
Height = 29;
Title = "位置の取得";
Function OnTouch( e ) {
/* スクロール位置を取得 */
^.Label3.Value = ^.FlexView1.GetScrollPos();
}
}
Button Button1 {
X = 223;
Y = 337;
Width = 83;
Height = 29;
Title = "設定";
Function OnTouch( e ) {
try{
/* スクロール位置の設定 */
^.FlexView1.SetScrollPos(^.TextBox1.Value);
}catch(e){
MessageBox("指定位置が不正です");
}
}
}
|