Article View: comp.windows.interviews
Article #1585Unidraw/idraw stretch questions
From: Zakir H. Sahul
Date: Wed, 27 Jan 1993 01:16
Date: Wed, 27 Jan 1993 01:16
20 lines
1377 bytes
1377 bytes
Could someone please help me stretch/modify a GraphicComp in Unidraw using a Command instead of a tool? I basically want to stretch a rectangle component so that its height is doubled. The user would select the rectangle, pull down a menu, and select a menu entry called "double height". This executes a command that I have defined. Ideally I just want to compute the height of the rectangle, add half that height to the top vertices and subtract half that height from the bottom vertices. I have gotten to the coordinates and computed the height etc, but I do not know how to change the coordinates. There doesn't seem to be a member function besides the constructor that sets the coordinates. So far, I have been able to move the rectangle, rotate it, change it's colors, delete it, etc. but I do not know how to just simply alter the coordinates. I tried to use the "ReplaceCmd" from Unidraw and it segmentfaults. Thanks in advance for all replies! -Zak.
Technical Details
Message-ID:
<1993Jan27.011651.15613@EE.Stanford.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!EE.Stanford.EDU!loading-zone!sahulShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!EE.Stanford.EDU!loading-zone!sahul From: sahul@loading-zone.Stanford.EDU (Zakir H. Sahul) Subject: Unidraw/idraw stretch questions Message-ID: <1993Jan27.011651.15613@EE.Stanford.EDU> Sender: sahul@loading-zone (Zakir H. Sahul) Organization: Stanford University Date: Wed, 27 Jan 93 01:16:51 GMT Lines: 22