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

  1. Path: news.ind.mh.se!ing9435
  2. From: ing9435@ind.mh.se (Jimmy Westerlund)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Sliiy window question
  5. Date: 1 Feb 1996 10:49:40 GMT
  6. Organization: Mid Sweden University, Dept. of Industrial technology
  7. Message-ID: <slrn4h16lq.5rq.ing9435@xerxes.to.mh.se>
  8. References: <4enngd$e6h@news.kth.se>
  9. NNTP-Posting-Host: xerxes.ind.mh.se
  10. X-Newsreader: slrn (0.8.4)
  11.  
  12. In article <4enngd$e6h@news.kth.se>, Johan Forsberg wrote:
  13. >How, exactly, do you calculate the position/size of the interior area of
  14. >a window?
  15.  
  16.  How about this...
  17.  
  18.  inner_width = window->width - (window->BorderRight + window->BorderLeft);
  19.  inner_height= window->height- (window->BorderTop + window->BorderBottom);
  20.  
  21.  I think this will work fine...
  22.  
  23. >
  24. >Johan
  25. >--
  26. >   _     _              ____           _
  27. > _| |___| |_ __ __ _   | ___|__ _ _ __| |__ ___ _ _ ___ 
  28. >| | / _ | ' / _ | ' \  | _|/ _ | '_(__| '_ / _ | '_/ _ |
  29. >\___\___|_||\__,|_||_| |_| \___|_| |__|____\___|_| \__ |
  30. >A4000/040  *Better dead than MicroSoft!*  C64 CDTV |__/
  31.  
  32.  /Jimmy Westerlund -- ing9435@ind.mh.se, or jimmy@eagle.ovik.se, or
  33.                       jimmy@linux.park.se.
  34.  
  35.