Board index » delphi » Creating control at runtime problem

Creating control at runtime problem

Hi,
I try to create TLable at runtime. The code is

Le:TLabel;
....
Le := TLabel.Create(Form);
Le.Caption := 'Caption';
....

But the label is not visible. What sould I do to see it?

Sergey Nikiforov,
ni...@plabet.net

 

Re:Creating control at runtime problem


On 3 Oct 1998 11:33:24 GMT, "Sergey Nikiforov" <ni...@planet.net>
wrote:

Quote
>But the label is not visible. What sould I do to see it?

Set the lable's Parent property.

---
Yorai Aminov (TeamB)
http://ourworld.compuserve.com/homepages/yaminov
(TeamB cannot answer questions received via email.
To contact me for any other reason remove nospam from my address)

Other Threads