sdim buf, 100
notesel buf
buf = "1000\n 500\n 300\n 200\n 100\n 50\n 40\n 30\n 20\n 15\n 10\n 5\n 4\n 3\n 2\n 1"
pos 10, 10 : mesbox buf, 60, 25, 0
pos 80, 10 : button "現在値", *getvalue
pos 10, 50 : combox index, , buf
pos 80, 50 : button "選択", *setvalue
stop
*getvalue
objsend 0, 0x00CE, , nonuse // 表示行を取得
noteget tmp, stat
dialog"現在 : " + tmp
stop
*setvalue
objsel 0
noteget tmp, index
instr i, buf, tmp
if i ! -1 {
objsend 0, 0x00B1, i, i, 1 // 検索先頭位置に移動
objsend 0, 0x00B7, , nonuse // 選択位置を表示
}
stop
|