gillies@noao.edu (Kim Gillies X246) (08/25/89)
I have just finished reading the Think C documentation on their class library and I am impressed and excited--it looks like fun. But what about dialogs? Is the idea really to create a dialog-like window with the descendants of CPane? What is the proper approach? Anybody have an example? Is there enough variety currently in the class library to support ViewEdit view resources or could it be possible with some work? -------------------- Kim Gillies, National Optical Astronomy Observatories, Tucson, AZ Usenet: {arizona,decvax,ncar}!noao!gillies or uunet!noao.edu!gillies Internet: gillies@noao.edu SPAN/HEPNET: draco::gillies Phonenet: 6023259246
fjlim@garnet.berkeley.edu (08/26/89)
In article <1162@noao.UUCP> gillies@noao.edu (Kim Gillies X246) writes: > >I have just finished reading the Think C documentation on their class >library and I am impressed and excited--it looks like fun. > >But what about dialogs? Is the idea really to create a dialog-like >window with the descendants of CPane? What is the proper approach? >Anybody have an example? > >Is there enough variety currently in the class library to support ViewEdit >view resources or could it be possible with some work? > In keeping with the spirit of Technote #203 (Don't Abuse the Managers), dialog boxes are not implemented in the THINK Class Library (TCL). Modeless dialogs are relatively simple to implement using panes, since there are classes for buttons, radio buttons, static and editable text. Modal dialogs require a bit more work (you need to override the DispatchClick() method of CDesktop in order to ignore clicks which occur outside the modal window). The ViewEdit application for MacApp, for those who don't know, allows you to graphically lay out views (the stuff that you see on the screen inside windows). It's similar to the dialog editors in ResEdit. There is a rough equivalence between the information MacApp uses to create a View and that used by the TCL to create a Pane, so it should be possible to create subclasses of CPane in the TCL which use the data from view resources. --- Gregory Dow (I wrote the TCL, but am not an employee of Symantec)