home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / x / 18959 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!gumby!destroyer!sol.ctr.columbia.edu!mary.fordham.edu!sbhatia
  3. From: sbhatia@mary.fordham.edu (SABU)
  4. Subject: How to resize image when windowis resized by user
  5. Sender: nobody@ctr.columbia.edu
  6. Organization: Fordham University
  7. Date: Tue, 10 Nov 1992 15:29:00 GMT
  8. News-Software: VAX/VMS VNEWS 1.41    
  9. Message-ID: <10NOV199211291724@mary.fordham.edu>
  10. Distribution: usa
  11. X-Posted-From: mary.fordham.edu
  12. NNTP-Posting-Host: sol.ctr.columbia.edu
  13. Lines: 29
  14.  
  15. Hi,
  16.  
  17.    I CURRENTLY HAVE AN APPLICATION IN WHICH I USE XLIB TO PLOT CERTAIN
  18. 2-D CURVES. THE PROBLEM I AM ENCOUNTERING ARE-:
  19.  
  20.    (1.)  The user  resizes the window. Currently what I do is that on
  21. recivg the specific events I get the co-ordinates of the new location
  22. of the window and determine the new size. Next I clear the entire 
  23. window, and then rescale the co-ordinates of my graph based on this
  24. new information and redraw it. This is an awful lot of work and for
  25. complex graphs consisting of multiple curves I notice a significant
  26. slow down. Is there a better way to do this.
  27.  
  28.   (2.) Expose events. When my window receives an expose event for instance
  29. it has just got uncovered by a window I redraw the whole graph all over
  30. again. Is there an efficient method whereby I can just just redraw
  31. only the portion that has been destroyed.
  32.  
  33.  
  34. thanks,
  35.  
  36. sabu 
  37.  
  38. ////////////////////////////////////////////////////////////////////////
  39. /   Internet:  SBHATIA@mary.fordham.edu                                /
  40. /   BITnet:    SBHATIA@FORDMULC                                        /
  41. /                                                                      /
  42. /                                                                      /
  43. ////////////////////////////////////////////////////////////////////////
  44.