home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4805 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: swidir.switch.ch!epflnews!vez
  2. From: vez@de.epfl.ch (Philippe Vez)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: How adjust window borders?
  5. Date: 5 Mar 1996 14:06:51 GMT
  6. Organization: Ecole Polytechnique Federale de Lausanne
  7. Distribution: world
  8. Message-ID: <4hhhpr$qc9@info.epfl.ch>
  9. References: <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> <ehb.02st@draco.prima.ruhr.de> <4gm1af$i15@the-fly.zip.com.au>
  10. NNTP-Posting-Host: desun1-f1.epfl.ch
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Stuart Mackinnon (stuartm@zip.com.au) wrote:
  14. : In article <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> mojaveg@ridgecrest.ca.us (Everett M. Greene) writes:
  15. : >I wish to be able to directly control the size of the window borders
  16. : >for a window which has no border gadgets or text.  The window opens
  17. : >as desired but I would prefer to have all four borders a bit wider.
  18. : >The implications in the RKM are that WA_InnerWidth and WA_InnerHeight
  19. : >should have some effect on border widths, but trying these seems to
  20. : >have no visible effect whatsoever.  Any ideas?
  21.  
  22. : What I am about to tell you is not very system friendly!!! Be warned!!
  23.  
  24. : Before you open your window do something like a Forbid() (I don't think
  25. : intuition uses interrupts in such a way to affect this, but if you
  26. : really want you could do Disable()).
  27.  
  28. : Then modify the WBorTop, WBorLeft, WBorRight, WBorBottom field in the
  29. : Screens structure. Remember the previous values before you start poking
  30. : them.
  31.  
  32. : Now, open your window. Restore the previous values in the Screen's
  33. : structure and call Permit() (or Enable()).
  34.  
  35. : Once the window is open, you can't modify the border sizes.
  36.  
  37. : This lets you adjust your window's borders, but I would recommend NOT
  38. : doing it.
  39.  
  40. : Regards,
  41.  
  42. : Stuart MacKinnon.
  43. : -- 
  44.  
  45. As you said, it's not very system friendly. There is another way that is
  46. discussed in the RKM I think.
  47.  
  48. Before Opening your window add Gadgets ( WA_Gadgets ) in the borders that don't
  49. have an imagery, don't forget to set the proper flags (something like 
  50. GFLG_RIGHTBORDER, etc..) . Simply adjust the Height and Width of the gadgets
  51. to the width you'd like the windows borders have.
  52. Intuition will automatically adjust the window borders to keep your invisible
  53. border gadgets inside the border (argh.. not so good english...)
  54.  
  55. Hope you understood.
  56.  
  57. --
  58. Sigs lost...
  59.  
  60.