Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mandrill!gatech!mcnc!rti!sas!toebes From: toebes@sas.UUCP (John Toebes) Newsgroups: comp.sys.amiga.tech Subject: Re: RAW: windows Keywords: RAW: window size Message-ID: <516@sas.UUCP> Date: 27 May 88 12:59:48 GMT References: <5997@well.UUCP> <1162@pur-phy> Reply-To: toebes@sas.UUCP (John Toebes) Organization: SAS Institute Inc, Cary NC Lines: 32 In reference to finding the size of a RAW: window: I know this isn't the answer that you are looking for, but I would recommend that you look into using console.device directly with a window that you open. The code for dealing with the window as a normal RAW: window is quite simple - I put an example of doing a simple printf, puts, getchar etc. in the article I wrote for Ami-Transactor. This will ultimately give you the most flexibility and control over what happens to the window. It will also open the path for improving the Amiga interface with less work. However IF you do want to go with a RAW: window, I suggest 3 things: 1) Get CONMAN. You can control quite explicitely how the window is to be opened (no sizing gadget or borders, etc) as well as a close gadget. 2) Use the info packet (sample posted by Andy Finkel some time back) to obtain the window pointer from the handler. Given this, you can get the size by just looking at the structure. (Someone else scream if this seems distasteful) 3) Use the raw events sequence to get back all the resizing events so that you can track them. You will find these documented in the AmigaDOS reference manual. See, it isn't that painless, you have at least 4 attacks on the problem. These certainly aren't the only ones, I would suggest that you experiment to find out what works best for you. |_o_o|\\ John A. Toebes, VIII usenet:..mcnc!rti!sas!toebes |. o.| || | . | || Coordinator of ... | o | || The Software Distillery | . |// USnail: 235 Trillingham Ln, Cary NC 27513 ====== BBS: (919)-471-6436