#module
#deffunc winscroll int, int
mref x, 0 : mref y, 1
mref bmscr, 67
bmscr.23 = x, y
width winx , winy // スクロールバー更新用のダミー
redraw 1 // 更新することで描画される
return
#global
screen 0, 400, 70, , 100, 100
ichi = 200, 100
pos 10, 20 : mes "左上基点"
pos 100, 20 : input ichi.0, 40, 25, 3
pos 150, 20 : input ichi.1, 40, 25, 3
pos 200, 20 : button "移動", *scroll
screen 2, 800, 600, , 100, 200, 400, 300
color 255, 255 : boxf , , 400, 300 : color
pos 50, 40 : mes "背景を黄色で塗りつぶしたこの部分が"
pos 50, 80 : mes "左上のデフォルト表示エリアです"
*scroll
winscroll ichi.0, ichi.1 // 自動でスクロールする
stop
|