🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #23787

dialog question

#23787
From: Charles L Ditzel
Date: Tue, 02 Dec 1986 07:29
43 lines
1867 bytes
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
Technical Details
Message-ID: <952@ssc-vax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!decwrl!amdcad!cae780!tektronix!uw-beaver!ssc-vax!benoni

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!decwrl!amdcad!cae780!tektronix!uw-beaver!ssc-vax!benoni
From: benoni@ssc-vax.UUCP (Charles L Ditzel)
Newsgroups: comp.sys.atari.st
Subject: dialog question
Message-ID: <952@ssc-vax.UUCP>
Date: Tue, 2-Dec-86 02:29:05 EST
Article-I.D.: ssc-vax.952
Posted: Tue Dec  2 02:29:05 1986
Date-Received: Fri, 5-Dec-86 21:08:43 EST
Distribution: net
Organization: Boeing Aerospace Co., Seattle, WA
Lines: 43