[comp.sys.mac.programmer] dialogs in DA's

volaski@acsu.buffalo.edu (12/13/89)

First I would like to thank everyone for their response to my question 
regarding animating picts. I tried making a PICT from overlapping objects
using Superpaint, and it works just fine. Talk about obvious.

Now I have a new question.

I am writing a DA in THINK Pascal under DA shell, and I usually get 
what I want to work there. Once I build the DA and run it under DA 
Handler (from SuitCase II), the results aren't always the same. One 
problem I can't seem to fix is displaying a dialog window. If I do 
GetNewDialog, the dialog appears when I run under DA Shell and works fine,
but under as a real DA, my DA window goes inactive, and the system 
acts as if a DA is there (probably the result of ModalDialog), but no 
dialog appears on the screen. I know the a window needs to be prepared, 
so to speak, by assigning dCtlWindow etc., but what about a modal dialog? (
Note, the dialog appears only from a control call, not an open call.) I
have tried showWindow and BringToFront to no avail.

What am I doing wrong?

Maurice Volaski
University at Buffalo
Dept. of Physiology