Hi
Create a button at runtime with owner set to the form and the top and
left properties as well as any other properties needed , see sample
below (similar requirement for a button and also note onexit event usage)
MyEditBox3[i] := TEdit.Create(Self);
MyEditBox3[i].Parent := ScrollBox1;
MyEditBox3[i].Top := i * 24 + 0;
MyEditBox3[i].Left := 510;
MyEditBox3[i].Width := 140;
MyEditBox3[i].OnExit := edtTotalExit;
MyEditBox3[i].Visible := true;
MyEditBox3[i].Text := '';
MyEditBox3[i].Hint := 'None';
MyEditBox3[i].ShowHint := true;
Mark
websmith wrote:
i would need to duplicate the component on the form but would like to control
the position of the duplicated ones. for example placing it on x = 0 and y = 50
relative to the original one.
is there a way to do so ??
ciao
daniel lee
singapore.
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi
--
Mark Carson
Managing
Integrated Product Intelligence/IPI CC CK 95/35630/23
Members : MH Carson and AG Carson
EMail : [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]
snailmail : P.O. Box 36095 Menlo Park 0102, South Africa
Cell : +27 83 260 8515
Tel : +27 12 349 2786
Fax : +27 12 349 2787
This e-mail may contain PRIVILEGED AND/OR CONFIDENTIAL INFORMATION intended
only for use of the addressee. If you are not the addressee, or the person
responsible for delivering it to the person addressed, you may not copy or
deliver this to anyone else. If you received this e-mail by mistake, please
do not make use of it, nor disclose it's contents to anyone. Thank you for
notifying us immediately by return e-mail or telephone. INFORMATION PROVIDED
IN THIS ELECTRONIC MAIL IS PROVIDED "AS IS" WITHOUT WARRANTY REPRESENTATION
OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO CONDITIONS OR OTHER TERMS OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE. THE USER ASSUMES THE ENTIRE RISK AS TO THE ACCURACY AND
THE USE OF THIS DOCUMENT.
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi