|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
needs help : about object property inside the TScrollBox
i try to create object on the fly using run-time . . i try using this code :
Code:
procedure TForm2.ButtonAddClick(Sender: TObject);
begin
EditNoArr:= TEdit.Create(Self);
with EditNoArr do
begin
Left:= 25;
Width:= 31;
Height:= 22;
Top:= 15;
Parent:= Self;
end;
end;
but the problem is i want the object TEdit is created inside the ScrollBox, so property left is 25 not 25 from the TForm but 25 from the ScrollBox, so the others to. Like creating in gui, the object treeview show inside the scrollbox there is an object. how to do that, but in run-time ? sorry my english not good... thax before |
|
#2
|
|||
|
|||
|
anyone plz.......
|
|
#3
|
|||
|
|||
|
i found how to do it......suddently it pass into my head..
just replace self with the name of TScrollBox...... thanx....... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > Newbie needs help : about object, record, and array............. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|