🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.interviews
1 messages
1 total messages Started by Zakir H. Sahul Wed, 27 Jan 1993 01:16
Unidraw/idraw stretch questions
#1585
Author: Zakir H. Sahul
Date: Wed, 27 Jan 1993 01:16
20 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads