Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!rutgers!netnews.upenn.edu!linc.cis.upenn.edu!rubinoff From: rubinoff@linc.cis.upenn.edu (Robert Rubinoff) Newsgroups: comp.sys.mac.programmer Subject: Re: Messing with TE and Dialogs Message-ID: <11032@netnews.upenn.edu> Date: 11 May 89 20:36:00 GMT References: <1552@cmx.npac.syr.edu> Sender: news@netnews.upenn.edu Reply-To: rubinoff@linc.cis.upenn.edu (Robert Rubinoff) Organization: University of Pennsylvania Lines: 22 In article <1552@cmx.npac.syr.edu> pcossenb@rodan.acs.syr.edu writes: > > Does anyone know exactly how the TextEdit records in dialog boxes work? > The reason I want to know this is because I am implementing something >like a dialog box but it is different enough that it needs to be rewritten. >I would, however, like to be able to use the item list defined in the dialog >manager so that I can use ResEdit to create and edit the item lists. Actually, you don't need to know anything about how the dialog manager works. All you need to know is what the user sees (i.e. how things are displayed and how the DM responds to user actions) and the format of the DLOG and DITL resources. This is all explained clearly in Inside Mac (the DM chapter); the only thing that isn't immediately obvious is this: the box around editText items is 3 pixels away on each side of the actual text, and clicking 2 pixels away or less (i.e. inside the box) counts as clicking on the item. I can vouch for this because I've written a substitute for the Dialog Manager myself (that has some extensions, of course; I'm not just trying to reinvent the wheel), and it can read DLOG resources and create an appropriate "dialog window". Robert