Advertisement
sashaatx

Untitled

Aug 11th, 2023
1,532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myGui := Gui()
  2. ogcButtonOK := myGui.Add("Button", "x8 y8 w80 h23", "&OK")
  3. ogcButtonOK.OnEvent("Click", OnEventHandler)
  4. myGui.OnEvent('Close', (*) => ExitApp())
  5. myGui.Title := "Window"
  6. myGui.Show("w120 h46")
  7.  
  8. OnEventHandler(*)
  9. {
  10.     ToolTip("Click! This is a sample action.`n"
  11.     . "Active GUI element values include:`n"  
  12.     . "ogcButtonOK => " ogcButtonOK.Text "`n", 77, 277)
  13.     SetTimer () => ToolTip(), -3000 ; tooltip timer
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement