hi there,
i need to create a TLAbel component at runtime on onButtonClick event (actually a few TLables).
when a button is pressed you would see between 4 to 5 TLAbels on the form.
i tried the following code:
for(some condition )
{
TLabel *MyLabel = new TLabel(this);
MyLabel->Enabled=true;
MyLabel->Caption=SKey.Segment;
MyLabel->Left=16+somthing;
MyLabel->Top=80;
MyLabel->Visible=true;
}
can you tell me why this is wrong? why can't i see the new TLabels?
please help...10x
i need to create a TLAbel component at runtime on onButtonClick event (actually a few TLables).
when a button is pressed you would see between 4 to 5 TLAbels on the form.
i tried the following code:
for(some condition )
{
TLabel *MyLabel = new TLabel(this);
MyLabel->Enabled=true;
MyLabel->Caption=SKey.Segment;
MyLabel->Left=16+somthing;
MyLabel->Top=80;
MyLabel->Visible=true;
}
can you tell me why this is wrong? why can't i see the new TLabels?
please help...10x