[comp.databases] 4th Dimension Question

beth@cayman.COM (Beth Miaoulis) (09/30/88)

 Hi -

I have a question about ACIUS' 4th Dimension....
I'm designing a menu bar for my custom environment and
I'd like to specify a procedure to run when the user selects
the Quit item from the File menu.  My question is that after
the procedure completes, how can I get it to quit from the
custom environment?  It seems that if I don't specify a
procedure for the Quit item, it exits the custom environment
just fine. But.. if I want any processing to go on before the
user quits, I'm stuck.

I'm probably (hopefully) missing something quite obvious.
Can an experienced 4D user lend a hand?

Thanks,
	Beth Miaoulis

liemandt@lindy.Stanford.EDU (Joe Liemandt) (10/04/88)

In article <1497@cayman.COM> beth@cayman.COM (Beth Miaoulis) writes:
>
>I have a question about ACIUS' 4th Dimension....
>I'm designing a menu bar for my custom environment and
>I'd like to specify a procedure to run when the user selects
>the Quit item from the File menu.  My question is that after
>the procedure completes, how can I get it to quit from the
>custom environment?  It seems that if I don't specify a
>procedure for the Quit item, it exits the custom environment
>just fine. But.. if I want any processing to go on before the
>user quits, I'm stuck.
>
>...
>Thanks,
>	Beth Miaoulis


There is an external procedure available from ACIUS which will do what 
you want.  It is called QUIT4D, and it will quit to either the User environment
or to the Finder when called.

So, you would create a procedure "doQuit". In this procedure you would perform
your clean-up operations, and then call QUIT4D. Then associate "doQuit" with
the Quit menu item. There are other ways, but this should solve your problem.
You can call ACIUS to get QUIT4D, it is free.

Joe Liemandt
Stanford University

fortmiller@hpscad.dec.com (Ed Fortmiller) (10/06/88)

 >There is an external procedure available from ACIUS which will do what
 >you want.  It is called QUIT4D, and it will quit to either the User
 >environment or to the Finder when called.

What other things are available from ACIUS and is there a charge for them?

Work address:
Usenet:	 {apple,adobe,acornrc,allegra,amdcad,cae780,decvax,dual,hplabs,idi,
           ihnp4,imagen,ios,logitec,microsoft,mips,mordor,muscat,purdue,pyramid,
           qubix,sci,sgi,sequent,spar,sun,turtlevax,ucbvax}!
	 decwrl!hpscad.dec.com!fortmiller
ARPAnet: FORTMILLER%HPSCAD.DEC@decwrl.ARPA
EASYnet: HPSCAD::FORTMILLER
USPS:    Ed Fortmiller
	 Digital Equipment Corp.
         MRO1-3/T2; 200 Forest St.; Marlboro, MA 01752
Phone:   (508)467-4160

liemandt@lindy.Stanford.EDU (Joe Liemandt) (10/06/88)

In article <8810052003.AA05864@decwrl.dec.com> fortmiller@hpscad.dec.com (Ed Fortmiller) writes:
>
> >There is an external procedure available from ACIUS which will do what
> >you want.  It is called QUIT4D, and it will quit to either the User
> >environment or to the Finder when called.
>
>What other things are available from ACIUS and is there a charge for them?
>
Acius has many different things available.  They have sample databases
written by members of the tech support staff, developer programs
and Skeleton. You can often get the sample databases just by calling
tech support and asking.

Their developer program (Apprentice) cost $195 a year and you receive
a monthly mailing that contains Tech notes about 4D, sample databases
and other misc. goodies from ACIUS. 

Skeleton is a shell for 4D written by tech support. It facilitates 
developing an application in the custom environment.  It will reduce
the amount of code need to one line for each layout. Skeleton is free
if you pick it up from ACIUS, otherwise they charge $20 shipping
and you do receive a manual.

If you need something specific, give them a call and ask.  They have
been extremely helpful when I needed something.

Joe Liemandt
Stanford University