Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Rectangles in DITL's Message-ID: <29679@ucbvax.BERKELEY.EDU> Date: 15 Jun 89 02:11:22 GMT References: <2354@etive.ed.ac.uk> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 23 In article <2354@etive.ed.ac.uk> nick@lfcs.ed.ac.uk (Nick Rothwell) writes: _>Can somebody give a quick explanation of the Rect's in some of the _>dialog DITL's, in particular for CNTL dialog items (scroll-bars and _>the like, although I'm using custom CDEF's). The CNTL contains a rect, _>and the DITL item contains a rect as well. Which gets used? Can I _>safely set the other one to (0,0,0,0)? Both are used: The control is "drawn" first at the rectangle in the CTRL resource, then resized by the one in the DITL. (This doesn't matter for CDEFs, much. I believe if you give a tall rectangle in the CTRL and a wide one in the DITL you'll get a really funny looking scroll bar. They don't have to have the same left corner, but the safest thing, for a custom CDEF, is to make them the same size. _> I've tried poking about with ResEdit, but it doesn't behave well _>with DITL's. Double-clicking such an item throws you straight into the _>CNTL. If your custom CDEF is correct, then you must be using an ancient version of ResEdit. Get a new version from APDA. Modern ResEdits include a "open as dialog item" for just such an occasion. --- David Phillip Oster --"Unix Version 7 was an improvement not Arpa: oster@dewey.soe.berkeley.edu --only over its predeccessors, but also its Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu --successors."