Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!cps3xx!usenet From: usenet@cps3xx.UUCP (Usenet file owner) Newsgroups: comp.sys.amiga Subject: Re: Assemnbly help needed Summary: Expires: Message-ID: <2142@cps3xx.UUCP> Date: 10 Mar 89 15:13:05 GMT References: <13100@gryphon.COM> Reply-To: porkka@frith.UUCP (Joseph A Porkka) Distribution: usa Organization: Michigan State University Lines: 28 In article <13100@gryphon.COM> shaulp@pnet02.cts.com (Shaul Peleg) writes: > > I am having a little trouble trying to implememnt the WIndowToBack and Front >calls. I am wrting a little program that will flip back and forth the windows >Window? What shuld my program be pointing at(too C-ish?)??? All you need to do is open a window of your own. In the Window structure there are pointers to the next, previous window in the list of windows for a particular screen. You can follow that chain up and down to find the window your are looking for (You *must* LockIBase to ensure the integrity of that list while you search through it). Then using the pointer to the window (Has nothing to do with names, same thing as what is returned by OpenWindow) you can call WindowToBack. This is a rude and dangerous thing to do with other peoples windows, but is ok for playing around for fun. I believe that the windows are sorted by order of last Active. THe Active window is the first, the previously active window would be next, etc... > Thanks. -=SP=- Your welcome. porkka@frith.egr.msu.edu jap@syssun.cl.msu.edu (35.8.1.1) In Real Life: Joe Porkka