#module
#defcfunc geteditrowtxt int id, int row, local s
sdim s, 4096 : wpoke s, , 0x0FFF // 最大4095バイト取得可能
sendmsg objinfo(id, 2), 0x00C4, row, varptr(s)
return s
#global
sdim buf, 320
buf = "アメリカ ブラジル チャイナ\n"
buf += "デンマーク イングランド フランス\n"
buf += "ジャーマニー ホンコン アイス\n"
buf += "ジャパン 神戸 ロンドン\n"
buf += "メキシコ ニューヨーク 大阪\n"
buf += "北京 ケベック ローム\n"
buf += "上海 東京 ユニオン\n"
buf += "ワシントン エクスレイ 横浜\n"
buf += "ゼブラ"
font "MS 明朝", 20 : objmode 2 : objsize 100, 30
pos 10, 10 : mesbox buf , 400, 130
combox index, 100, "0行目\n1行目\n2行目\n3行目\n4行目\n5行目\n6行目\n7行目\n8行目"
button gosub "を選択", *scroll
stop
*scroll
dialog geteditrowtxt( , index), , strf("%d行目の内容", inddex)
return
|