I have written a small test program which opens a channel and reads the
values of scr_xlim & scr_ylim, prints them and then closes the channel.
When compiled with windows copied, there is no phantom - ever !
When compiled with no windows copied, the phantom appears under the
following circumstances
1. The calls to scr_xlim/scr_ylim are made before the window is opened
2. The calls are made after opening, and the channel opened is not #0 or #1.
(#2 onwards will show the phantom.)
3. The call is made before opening #0, briefly shows a phantom which
vanishes as soon as #0 opens.
4. The call is made before opening #1, shows a phantom which doesn't vanish
as soon as #1 opens.
What to do to avoid a phantom :
1. Compile with windows copied.
2. Open #0 or #1 before calling scr_xlim/scr_ylim
I suspect therefore that scr_xlim/scr_ylim look for channel #0 first and if
found use it.
If #0 not found, then try #1 and if found use it.
If #0 and #1 not found, open a new #0 and use that. This channel appears to
stay open until the end of the job.
Hope this helps other sufferers.
Norman.
----------------------------------------------------------------------------
----
Norman Dunbar EMail: [EMAIL PROTECTED]
Database/Unix administrator Phone: 0113 289 6265
Lynx Financial Systems Ltd. Fax: 0113 201 7265
URL: http://www.LynxFinancialSystems.com
----------------------------------------------------------------------------
----