home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / intervie / 3645 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!stanford.edu!EE.Stanford.EDU!loading-zone!sahul
  3. From: sahul@loading-zone.Stanford.EDU (Zakir H. Sahul)
  4. Subject: Unidraw/idraw stretch questions
  5. Message-ID: <1993Jan27.011651.15613@EE.Stanford.EDU>
  6. Sender: sahul@loading-zone (Zakir H. Sahul)
  7. Organization: Stanford University
  8. Date: Wed, 27 Jan 93 01:16:51 GMT
  9. Lines: 22
  10.  
  11. Could someone please help me stretch/modify a GraphicComp in Unidraw using a
  12. Command instead of a tool?  
  13.  
  14. I basically want to stretch a rectangle component so that its height is doubled. 
  15. The user would select the rectangle, pull down a menu, and select a menu entry
  16. called "double height".  This executes a command that I have defined. 
  17.  
  18. Ideally I just want to compute the height of the rectangle, add half that height
  19. to the top vertices and subtract half that height from the bottom vertices.  I
  20. have gotten to the coordinates and computed the height etc, but I do not know how
  21. to change the coordinates.  There doesn't seem to be a member function besides
  22. the constructor that sets the coordinates.
  23.  
  24. So far, I have been able to move the rectangle, rotate it, change it's
  25. colors, delete it, etc. but I do not know how to just simply alter the 
  26. coordinates.  I tried to use the "ReplaceCmd" from Unidraw and it segmentfaults.
  27.  
  28. Thanks in advance for all replies!
  29.  
  30. -Zak.
  31.  
  32.  
  33.