Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How Do I create and manipulate shapes at run-time? Posted by DelphiDummy on 9 Apr 2012 at 12:12 PM
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.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.