[comp.sys.atari.st] dialog question

benoni@ssc-vax.UUCP (Charles L Ditzel) (12/02/86)

Last night i ran across a problem that i couldn't seem to figure out,
hopefully some kind soul out there has more experience with dialog
boxes.
I am working with a megamax C compiler and my problem is making the
dialog boxes disappear once they have outlived their usefulness.

 Currently i have a routine that goes like this:

    do_dialog(...)
    ...
    {
	form_center(....);
	form_dial(0,...);
	obj_draw(...);
	form_do(...);
	form_dial(3,...);
	return(...);
    }

My understanding is that form_dial with the first argument = 0
should reserve screen space for the dialog.  And if form_dial
is later called and passed a 3 as the first argument then :
         1) the screen space is freed
	 2) and the dialog is removed
	 3) and what was originally under the dialog is returned 
	    to the screen.

Unfortunately i am having problems in that the final call to form_dial
does not remove the dialog box.  So dialog boxes continue to stack up
on the screen after repeated calls to do_dialog.

I would appreciated a good example to steer me straight or any
information at all.

Two side issues have me further confused :
	1) does the size of the dialog have anything to do with
	   whether it is removed?
	2) does form_dial work?
	

			thanks in advance,
                         charles ditzel