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