Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How Do I create and manipulate shapes at run-time?

So I'v made an array of Tshape and used that to create many shapes at run-time. Now I want to change their positions, sizes ect. at runtime aswell - After creating them at run-time obviously.
------------------------------------
More or less how i did it:

Var
shp : Array[1..10] of Tshape;

procedure Btnclick
shp[x].left := SpinEdt.value;
shp[x].top := SpinEdt.value;
shp[x].parent := form1;
========================================
Now i want to do something like this:
procedure Btnchangeclick:
shp[x].left := OtherSpinEdt.value;
shp[x].top := Otherspinedt.value;
--------------------------------------
But the shape remains exactly the same, i cant manage to change it at all from the way i made it and i just know it has to be something simple!

Thanks.
Sign In or Register to comment.