home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19878 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  2.2 KB

  1. Path: sparky!uunet!enterpoop.mit.edu!eru.mt.luth.se!kth.se!dront.nada.kth.se!d88-jwa
  2. From: d88-jwa@dront.nada.kth.se (Jon Wtte)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: TCL: Dialogs (Help Needed)
  5. Message-ID: <1992Dec15.215311.29721@kth.se>
  6. Date: 15 Dec 92 21:53:11 GMT
  7. References: <1992Dec15.145557.8695@mail.cornell.edu> <1992Dec15.160042.29935@ncar.ucar.edu>
  8. Sender: usenet@kth.se (Usenet)
  9. Organization: Royal Institute of Technology, Stockholm, Sweden
  10. Lines: 43
  11. Nntp-Posting-Host: dront.nada.kth.se
  12.  
  13. In <1992Dec15.160042.29935@ncar.ucar.edu> urban@stout.atd.ucar.edu (Art Urban (PROFS)) writes:
  14.  
  15. >I have a few questions concerning the use of Dialogs in the TCL.
  16.  
  17. >1) In the TeachText document, they comment that the supervisor of the Dialog
  18. >   must be the dialog itself. However, IDLOGDialog wants an object of type
  19. >   CDirector for the supervisor, so how can I pass a CDLOGDialog here? And
  20. >   if I do so, doesn't that break the chain of command with the CDirector?
  21.  
  22. The "Dialog" that must be supervisor is the DLOGDirector.
  23. The supervisor of the DLOGDirector should be the document the
  24. dialog pertains to, or the DirectorOwner that supervises the whole
  25. multi-window document.
  26.  
  27. >2) CDialogText only accepts one line of text. Is this correct?
  28.  
  29. No, but return is mapped to cmdOK by the default CDialog
  30.  
  31. >   button; I have to litterally click on the button. It seems that a call to
  32. >   BeginDialog() would fix my problem, but this is not a modal dialog.
  33.  
  34. BeginDialog should be used no matter if your dialog is modal
  35. or not, I seem to remember.
  36.  
  37. >4) Is there a better discussion/explanation of TCL Dialogs, than the sparse
  38. >   document provided? It took me a while to figure out that I had to append
  39. >   the command number to the DITL item with #<number>. I discovered this
  40. >   only by examining one of their DITLs; I could not find this documented
  41. >   anywhere.
  42.  
  43. The example project and sources are the best documentation.
  44. The Think Class library is SO much easier to learn by actively
  45. disecting it, than by reading about it. That goes for most
  46. other things as well!
  47.  
  48. Cheers,
  49.  
  50.                         / h+
  51.  
  52. -- 
  53.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  54.  
  55.    This article printed on 100% recycled electrons.
  56.