home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 488.lha / TCL_alpha2 / tcl.lzh / tcl / docs / tcla / displayrequest < prev    next >
Encoding:
Text File  |  1990-05-04  |  620 b   |  21 lines

  1.  
  2.  
  3. displayrequest - display a requester from Tcl
  4.  
  5.  
  6. To make displayrequest available to your Tcl interpreter, you must first
  7. call the initialization routine TclaInitRequester().
  8.  
  9. Once you have done so, you may do a:
  10.  
  11.     displayrequest message yestext notext
  12.  
  13. When executed, you will get a requester with the message text on the
  14. screen, and yestext and notext as the names of what are usually "Continue"
  15. and "Cancel" gadgets.
  16.  
  17. displayrequest returns the string "1" to report selection of the "yes"
  18. option, and "0" to report selection of the "no" option.
  19.  
  20. set result [displayrequest "Exit without saving changes?" "YES" "NO"]
  21.