$INCLUDE "rapidq.inc"
$TYPECHECK ON
DECLARE SUB click
CREATE Form AS QFORM
BorderStyle = bsSingle
DelBorderIcons(biMaximize)
CAPTION = "My Program"
Width = 400
Height = 300
Center
CREATE button1 AS QBUTTON
top = 10
left = 10
onclick = click
END CREATE
END CREATE
Form.SHOWMODAL
SUB click
DEFSTR text = "hello world"
DEFINT x
x = (form.clientwidth/2) - (form.textwidth(text)/2)
form.textout(x, 150, text, clRed, -1)
END SUB
|