TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: All
from: Bob van der Poel 76510,2203
date: 1993-07-06 19:04:49
subject: #Kwindows

#: 18393 S12/OS9/68000 (OSK)
    06-Jul-93  19:04:49
Sb: #Kwindows
Fm: Bob van der Poel 76510,2203
To: All

Just made an interesting discovery working with kwindows...and it probably
explains why some gfx programs return you to the original window when they exit
and others don't. The following section of code ends the program in a 'random'
window:

        close(path);    /* close the display window */
        Select(0);      /* select the original window */

However, reversing the order of the these calls returns the proper closing
window. Guess kwindows gets confused when the display screen is deselected or
something. Hope this helps someone.

There are 2 Replies.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.