HI all.
I seem to be having some problem when creating a lable and an edit box dynamcially at run time.
if I put the follwoing code on a buttons click event, the lable appears to be created, but not dipslayed....can anyone spot why ???
 
///*************************************
var
 lbl:TLabel;
begin
    lbl:=TLabel.create(self);
    lbl.caption:='Hello';
    lbl.top:=20;
    lbl.height:=30;
    lbl.left:=100;
    lbl.width:=50;
    lbl.visible:=true;
    lbl.font.color:=clBlack;
    lbl.color:=clbtnface;
///*************************************
Cheer,   
 
 
Jeremy Coulter (manager)
Visual Software Solutions

110 Harewood Road
Christchurch
ph +64 3 3521595
fx +64 3 3521596
cell +21 2533214
http://www.vss.co.nz
 

Reply via email to