home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / softsys / andrew / 1500 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.3 KB  |  38 lines

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!hplabs!ucbvax!ANDREW.CMU.EDU!gk5g+
  2. From: gk5g+@ANDREW.CMU.EDU (Gary Keim)
  3. Newsgroups: comp.soft-sys.andrew
  4. Subject: Re: How to resize the window of a running application?
  5. Message-ID: <4fIns9G00WohAsZHwz@andrew.cmu.edu>
  6. Date: 12 Jan 93 21:54:17 GMT
  7. References: <EfIgt6SIlUc5Q8TkJy@harare.kapsch.co.at>
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Distribution: world
  10. Organization: The Internet
  11. Lines: 25
  12.  
  13. Excerpts from misc: 12-Jan-93 How to resize the window of.. Fodatec
  14. Project@harare.k (274)
  15.  
  16. > Could anyone please give me a hint how to change the window size of a
  17. > running application from within that application, to the values which
  18. > are computed at run-time in a result of some user's action ?
  19.  
  20. There are methods in andrew/atk/basics/x/xim.c that do what you want:
  21.  
  22. xim__ResizeWindow(self, w, h)
  23. xim__MoveWindow(self, x, y)
  24.  
  25. These methods don't seem to be fully integrated into the system because
  26. they don't appear in xim.ch and you would also expect there to be empty,
  27. dummy routines in im.c that these would override.  This might imply that
  28. there is a problem with these routines.... anybody know?
  29.  
  30. You should be able to use these guys in your code, like so:
  31.  
  32. #include <im.ih>
  33. im_ResizeWindow(fooview_GetIM(self), newWidth, newHeight);
  34.  
  35. Gary Keim
  36. Andrew Consortium
  37.  
  38.