You can firstly try using an OVERLAY Keyword in the original Screen or
another possible solution is using 'Share Open PAth' on the CRTDSPF
cammand.
Regards
Rik!
Dennis Bundy
>I am trying to write a program that can be called from another program and
>pop up a window with a subfile in it. I've gotten every thing to work
>except I cant keep the original screen from being redrawn when the second
>program is called. Has anyone been able to do this?
You need to add a dummy record format to the display file. It needs to
have the ASSUME keyword specified in it:
A R NULL
A ASSUME
A 1 2' '
You never actually use the record format - it just needs to be there.
_____________________________________________________________________
"But there must be something more to death than surfing all the time"
- Dar Williams
>You need to add a dummy record format to the display file. It needs to
>have the ASSUME keyword specified in it:
> A R NULL
> A ASSUME
> A 1 2' '
>You never actually use the record format - it just needs to be there.
That's the way to do it... but when you call the second program that
open the window... the background screen will reappear with it.
DSPFs are in SHARE(*YES) for just one open.
Have you a solution for that ?
J.M.Hatton
You need to overwrite the background of your window subfile with blanks
so that the previously opened display file image is obliterated and will not
confuse things when the subfile is output.
Do this by writing a format with blank constants.
Regards,
R. White
It used to be true that you needed to pad all of the blank spaces with
actual blanks, but if you use the window keywords in your DDS you no
longer have to do this. You code it just like a regular screen.
--
Larry Moon lm...@aig.vialink.com
Applied Intelligence Group, Inc. http://www.aig.vialink.com/
Oklahoma City Oklahoma, USA
Providing Systems and Network Solutions for the Retail Supply Chain