home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / acorn / tech / 534 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.4 KB

  1. Path: sparky!uunet!decwrl!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!jwil1
  2. Newsgroups: comp.sys.acorn.tech
  3. Subject: Re: Some Questions... (Very Long)
  4. Message-ID: <1992Nov9.025431.25997@cs.aukuni.ac.nz>
  5. From: jwil1@cs.aukuni.ac.nz (TMOTA)
  6. Date: Mon, 9 Nov 1992 02:54:31 GMT
  7. Sender: jwil1@cs.aukuni.ac.nz (TMOTA)
  8. References: <1992Nov3.105100.21476@cs.ruu.nl>
  9. Organization: Computer Science Dept. University of Auckland
  10. Lines: 22
  11.  
  12. jjjbokma@cs.ruu.nl (John Bokma) writes:
  13.  
  14. > 2. When using Wimp_GetWindowInfo to read some information on a window you 
  15. >    also get 32 bytes for every icon in the window. How can you determine 
  16. >    the number of icons in a window 
  17.  
  18. Oh, that's easy... you just call Wimp_GetWindowInfo, and read the number
  19. of icons... A nice feature of the Wimp, that... ;-)
  20. (But seriously, the only thing to do is use a default buffer size that's
  21. definitely big enough for *any* of your windows...)
  22.  
  23. > 3. How do I get the input focus in a window like the main window of !Draw?
  24.  
  25. Plonk it in, as in your example, but...
  26. I use x and y offsets that ensure the caret is outside the visible workspace
  27. of the window, so there is no way that a caret can 'accidentally' appear
  28. in the window...
  29.  
  30. -- 
  31. _________________  "I'd like to answer this question in two ways:
  32.   /____ _ _/_ __       First in my normal voice, and then
  33.  // / //_//_ /_/       in a silly, high-pitched whine." (Monty Python)
  34.