Discuss TShape problem in Borland C++ in the Delphi Programming forum on Dev Shed. TShape problem in Borland C++ Delphi Programming forum discussing Delphi related topics including Kylix, C++ Builder, and more. Delphi is a high-performance language, originally based on the PASCAL language.
Time spent in forums: < 1 sec
Reputation Power: 0
TShape problem in Borland C++
I have a TShape object on a form and I want to store itīs Top and Left positions. Then if I add one more shape object to my app and want it to have the same position as the first shape, how can I do it easily??
Why not? If you really need it in one line, you could derive your own TMyShape from T(Custom?)Shape and add eg. "TPoint ::GetPosition()" and "SetPosition(TPoint)" methods, but this is probably too much overhead compared to using the two lines from above...