View difference between Paste ID: sehqMd3V and nxKsnSTZ
SHOW: | | - or go back to the newest paste.
1
f = createForm()
2
 f.setSize(200,200)
3
 b = createButton(f)
4
 b.setSize(100,100)
5
 b.left = (f.width - b.width) / 2
6
 b.top = (f.height - b.height) / 2
7
 b.Caption = 'My Button'
8
9
function showMsg()
10
  showMessage('Hello there...!!')
11
  return
12
end
13
14
function exiter()
15
  --closeCE()
16
  return caFree
17
end
18
19
f.show()
20
b.onClick = showMsg
21-
f.onClose = exiter
21+
f.onClose = exiter
22