Created
May 24, 2011 20:42
-
-
Save outworlder/989616 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (use iup) | |
| (define btn-ok | |
| (button title: "OK")) | |
| (define btn-activate | |
| (button title: "Activate")) | |
| (define btn-exit | |
| (button title: "Exit")) | |
| (callback-set! btn-ok "ACTION" (lambda (args) | |
| (print "OK pressed!"))) | |
| (callback-set! btn-exit "ACTION" (lambda (args) | |
| (exit))) | |
| (define main-window | |
| (dialog title: "Main Window" | |
| (vbox | |
| (label title: "Write stuff here:") | |
| (textbox expand: "YES" multiline: "YES") | |
| (hbox (fill) btn-ok btn-activate btn-exit)))) | |
| (show main-window) | |
| (main-loop) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment