[comp.sys.atari.st.tech] Programming hints ....

elmar@lut.ac.uk (Mohammad A. Rahin) (03/14/91)

Organization : Loughborough University, UK.
Keywords: 


Because of memory limitation (I've only 1 MByte memory), I could not use GULAM
shell for running TeX. I've also tried TeXshel2 (obtainable at atari.archive.
umich.edu). But, the latter is really incomplete. As a result I decided to 
write my own shell -- my first GEM program. It is more or less based on TeXshel2
but completes things left in TeXshel2. However, I am facing some silly problems.
Could be these are due to my inexperience in GEM programming. I would appreciate
any help or suggestions in the right direction. BTW, I'm using Prospero Pascal
(I'm not a C man) -- a compiler not famous for tight code generation and also
I did not use any single AES routine and all function calls are through 
Propero's higher level interface.

Problem 1: I've provided options for file deletion and renaming. Once selected,
the user is repeatedly asked for the file name (through fsel_input) followed by
confirmation (for file deletion) or new file name (for file renaming) dialog 
until the user quits from the fsel_input level. This works more or less fine. 
But, the problem begins after a while, especially when the CANCEL button is 
selected more than once from the confirmation (for file deletion) or raname 
(for file renaming) dialog. The dialog boxes are left on the screen when this 
problem begins. I'm using standard form_alert (for confirmation on file 
deletion) and a simple dialog box (for file renaming) and use form_do,form_dial 
etc. for the latter. How, can I avoid these dialog boxes being left on 
the screen?

Problem 2: When the shell starts, the desktop colour is the usual gray (on mono 
monitor). After launching a program from the shell and when the control comes
back to it the desktop turns all white for most programs. What is the easiest
way to revert the desktop colour to gray? 

Thanks in advance.

Rahin

------------------------------------------------------------
(M.A.Rahin@uk.ac.lut)		-> from within UK
(M.A.Rahin@lut.ac.uk)		-> from outside UK

elmar@lut.ac.uk (Mohammad A. Rahin) (03/14/91)

Organization : Loughborough University, UK.
Keywords: 

In article <1991Mar13.170142.7470@lut.ac.uk> elmar@hpc.UUCP (Mohammad A. Rahin) writes:
>
>Because of memory limitation (I've only 1 MByte memory), I could not use GULAM
>shell for running TeX. I've also tried TeXshel2 (obtainable at atari.archive.

		
>I did not use any single AES routine and all function calls are through 
			  ^^^ 
                        OOps correction : please read VDI.
Rahin

------------------------------------------------------------
(M.A.Rahin@uk.ac.lut)		-> from within UK
(M.A.Rahin@lut.ac.uk)		-> from outside UK