alasoft Posted May 16, 2013 Share Posted May 16, 2013 Pardon my ignorance .. :-) But if I create a TUniLabel at runtime over a TUniForm like this: TMyForm.OnCreate(Sender: TObject); var oMyLabel: TUniLabel; begin oMyLabel:=TUniLabel.Create(Self); with oMyLabel do begin Parent:=Self; Caption:='Hi World; Top:=10; Left:=10; AutoSize:=True; end; end; The control displasy fine .. but, while the Height property was setted .. that does not happen with the Width property, wich remains in 0 (zero) I need to 'calculate' somehow the width - in pixels - of that label created like the sample, in runtime, depending on the Caption property. Help !! :-) Thanks Rober Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.