Article View: comp.sys.amiga.tech
Article #466CloseWindow() & Intuition timing problem?
From: Leonard Norrgard
Date: Thu, 13 Jul 1989 00:23
Date: Thu, 13 Jul 1989 00:23
25 lines
1441 bytes
1441 bytes
Today we encountered a slight problem with CloseWindow(). When we close one window (window A), the result is a change in another windows Flags (window B, a backdrop window), namely the REPORTMOUSE flag, which is cleared. Window B becomes active when window A is closed. This is what happens in the code: A gadget in the window is double-clicked. This eventually leads to the gadgets window being closed. The gadget has the flags GADGIMMEDIATE, RELVERIFY and *FOLLOWMOUSE* set, and is of type boolean (hit select). After the double-click, CloseWindow(A) is called. When window B:s Flags is examined it's REPORTMOUSE flag has been cleared. If we insert a Delay(100); before the CloseWindow(A) call, everything works OK. A Delay(10); is not long enough. For now, we'll just set the flag after the call, but we'd like to know why this happens, and if there's some other way around it. Clues? -- Leonard Norrgard, vinsci@abo.fi, vinsci@finabo.bitnet, +358-21-654474, EET.
Technical Details
Message-ID:
<VINSCI.89Jul13032359@ra.abo.fi>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!kth!draken!tut!ra!vinsciShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!kth!draken!tut!ra!vinsci From: vinsci@ra.abo.fi (Leonard Norrgard) Newsgroups: comp.sys.amiga.tech Subject: CloseWindow() & Intuition timing problem? Summary: Delay(100) makes it go away! Message-ID: <VINSCI.89Jul13032359@ra.abo.fi> Date: 13 Jul 89 00:23:59 GMT Sender: vinsci@ra.abo.fi Reply-To: vinsci@abo.fi Organization: Computer Centre, Abo Akademi University Lines: 24 Quote: "