Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


WBT Scrolls across a Screen and Grows a Window

Keywords: scrollable scrolls scrolling

This sample script which places a specific sized window on the screen and then scrolls it across the screen making the window larger.
; ZORKLE.WBT 
Run("sol.exe","")

x=WinMetrics(0)
y=WinMetrics(1)
w=x/5
h =y/5
sx=0
sy=0

for i=1 to 10
  WinPlace(sx,sy,sx+w,sx+h,"Solitaire")
  sx=((x/10)*i)-w;
  sy=((y/10)*i)-h
  w=w+x/20
  h=h+y/20
  delay(1)
next

WinZoom("Solitaire")


Article ID:   W13759
Filename:   WBT Scrolls across a Window and Makes it Larger.txt