Advertisement
a3dem12

Untitled

Jun 25th, 2021 (edited)
2,634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement