$INCLUDE "RAPIDQ.INC" $TypeCheck ON $Optimize ON $APPTYPE GUI
DIM x as integer
Const Gwl_Hwndparent = (-8) Const Hwnd_Desktop = 0 DECLARE FUNCTION SetWindowLong Lib "user32"Alias"SetWindowLongA"(hwnd As Long, nIndex As Long, dwNewLong As Long) As Long DECLARE SUB Buttonclick DECLARE SUB start
CREATE FORM AS QFORM left =274 top =156 width =583 height =379 Caption = "DEFAULT" OnShow = start
END CREATE
for x = 1 to 10 DIM BUT(x) AS QBUTTON BUT(x).parent=Form BUT(x).top=10 BUT(x).width=40 BUT(x).left=5+x*42 BUT(x).onclick=Buttonclick next x