Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site tektronix.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!tektronix!tools From: tools@tektronix.UUCP (Tom Milligan) Newsgroups: net.micro.mac Subject: Using Dialogs in DA's Message-ID: <5925@tektronix.UUCP> Date: Wed, 13-Nov-85 13:37:05 EST Article-I.D.: tektroni.5925 Posted: Wed Nov 13 13:37:05 1985 Date-Received: Fri, 15-Nov-85 05:30:20 EST Distribution: net Organization: Tektronix, Beaverton OR Lines: 43 I tried posting this from one of our other machines, but I don't think it made it out. So, if this is something you've seen before, sorry... I am trying to use a Modal Dialog Box within a DA, and trying to process it using the ModalDialog toolbox call. Unfortunately, this doesn't seem to work very well, resulting in system crashes. Has anyone done this successfully? If so, I would appreciate some pointers. A brief skeleton of how I'm (unsuccessfully) trying to do it (in Aztec C) is as follows: open() { . . DCEPtr->dCtlWindow = GetNewDialog(...); . . } control() { . . switch (event) { case accEvent: SelectWindow(DCEPtr->dCtlWindow); if (firsttimethrough) { ModalDialog(...); } . . . } A code fragment from someone who has done this would be great. Lacking that however, good ideas are most welcome. Thanks, Tom Milligan tektronix!tekig5!tomm