Change Heigth and Width

PepSoft

Member
Licensed User
Longtime User
is possible to create something like this?
To change the width and height of an object


PepSoft
 

Attachments

  • ImgA.JPG
    ImgA.JPG
    3.2 KB · Views: 270

mjcoon

Well-Known Member
Licensed User
is possible to create something like this?
To change the width and height of an object

I wrote code to draw a rectangle and allow it to be stretched or moved, depending on where it was touched. I think it will be embedded in the mapping module of GPS4PPC v2.0. But because the idea was to define a zoom area the aspect ratio was constrained to the screen's. Also there were no "handle" markers as is common when drawing rectangles like this.

But it might form a basis for what you want. Feel free to ask (especially if you cannot find the relevant code; I have much more recent versions!).

HTH, Mike.

Edit: in attached code you can grab the rectangle on each side, at each corner, or anywhere within, and drag appropriately.
 

Attachments

  • SqueezeRectangle.sbp
    7.3 KB · Views: 261
Last edited:

PepSoft

Member
Licensed User
Longtime User
Thank you very much. It is a very interesting work. I will try to adapt it to my project.

PepSoft
 
Top