Thread View: comp.sys.mac.oop.misc
2 messages
2 total messages
Started by vollrath
Fri, 18 Dec 1992 17:47
TCL windows and dialogs
Author: vollrath
Date: Fri, 18 Dec 1992 17:47
Date: Fri, 18 Dec 1992 17:47
23 lines
1537 bytes
1537 bytes
Hi, This sort of question is beginning to look repetitious, sorry. Is there a FAQ for this newsgroup? How do I get it? That wasn't the question. I am using Think Pascal / TCL. I want the main window to be a modeless dialog (or window with text fields), and two subsidiary windows (not usually visible) to handle text and graphics. The program reads in x-y coords of spider webs, and calculates a few hundred parameters, then outputs the results to FileForce files. The program has to display some changeable information (like date) on screen, and optionally display a picture of the web, and a text log file. Now, how is this best structured. CDocument is not a subclass of CDLOG- Director. Should I make itsWindow the log window, have a separate director to deal with the graphic window, and a subclass of CDLOGDirector to handle the dialog? Seems awkward, because the dialog has a couple of buttons to skip the web, or get the next from the file. I have to keep passing data back and fore to save to the file. Sorry this is so rambling. If people email, I'll summarise to the net. Thanks in advance. Alun ap Rhisiart Animal Behaviour Research Group Oxford University (vollrath@vax.ox.ac.uk)
Re: TCL windows and dialogs
Author: Art Urban
Date: Sun, 20 Dec 1992 22:07
Date: Sun, 20 Dec 1992 22:07
23 lines
1765 bytes
1765 bytes
In article <1992Dec18.174746.10916@vax.oxford.ac.uk> vollrath@vax.oxford.ac.uk writes: %hundred parameters, then outputs the results to FileForce files. The %program has to display some changeable information (like date) on screen, %and optionally display a picture of the web, and a text log file. %Now, how is this best structured. CDocument is not a subclass of CDLOG- %Director. Should I make itsWindow the log window, have a separate director %to deal with the graphic window, and a subclass of CDLOGDirector to handle %the dialog? Seems awkward, because the dialog has a couple of buttons to As some kind net-soul explained to me: Your DLOG window should be supervised by an instance of DLOGDirector, and then the DLOGDirector should be supervised by an instance of CDocument. Because CDocument is a subclass of CDirectorOwner, it can supervise another Director. I hope this is right! I have not yet tried it myself... -- Art Urban urban@stout.atd.ucar.edu =============================================================================== "What's Next? Chasing bunnies on a motorbike until their hearts explode? -Crow ===============================================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads