home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!news.cs.hut.fi!s37732v
- From: s37732v@snakemail.hut.fi (Markus Juhani Aalto)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: WindowToBack() ... BUG?!?!?!
- Date: 30 Dec 92 15:51:13 GMT
- Organization: Helsinki University of Technology, Finland
- Lines: 51
- Distribution: world
- Message-ID: <S37732V.92Dec30175113@lk-hp-17.hut.fi>
- References: <1hrvlkINN2lg@cc.tut.fi>
- NNTP-Posting-Host: lk-hp-17.hut.fi
- In-reply-to: k114636@cc.tut.fi's message of 30 Dec 1992 13:03:15 +0200
-
- In article <1hrvlkINN2lg@cc.tut.fi> k114636@cc.tut.fi (Kuulusa Mika) writes:
-
-
- I'll discribe a bit...
-
- I have a program running on the background which does
- WindowToBack() every 4 seconds. Then I start dragging an
- icon (in Workbench) and when the program does WindowToBack(),
- the icon VANISHES. Just like that. Hm.... why?
-
- I had the same problem and it has to do something with layer lockings.
- Someone form Commodore explained this to me once, but I can't recall
- what the exact reson was.
-
- How should I make the window go background? With layers.library
- I can make the windowlayer go background, but I don't know how
- to refresh other layers in the screen. Can someone help me?
-
- You have to try to lock layers before use WindowToBack().
- Check the code in the end.
-
- Mika Kuulusa p.931-236 304
- Yliopistonkatu 46B49,33100 TAMPERE email k114636@cc.tut.fi
- FINLAND "Ei saa j{{d{ tuleen makaamaan"
-
- ----------- clip here --------------------
-
- /* Lock layers. If someone else has locked it, then we wait. */
- LockLayerRom( WorkbenchScreen->LayerInfo.top_layer );
- Forbid();
- UnlockLayerRom( WorkbenchScreen->LayerInfo.top_layer );
-
- WindowToFront(MyWindow); /* Or use WindowToBack() */
- Permit();
-
- ----------- clip here -----------------------
-
- This ought to do it.
-
-
- --
-
-
- **************************************************************************
- * Markus Aalto | Helsinki University of Technology *
- * | *
- * EMail: s37732v@vipunen.hut.fi | Faculty of Electric Engineering *
- * Fax: 358-0-8746991 (Sometimes) | *
- * | Undergraduate in Computer Science *
- **************************************************************************
-
-