.


:




:

































 

 

 

 





(ownership) , .

Owner () , . . 6.2 .

 

. 6.2. .

, , . , , , , TPanel. , (Ttimer, DataSource) .

, . (this) TButton . TButton Owner MyButton:

MyButton = new TButton(this);

, TButton , MyButton.

, , 0 . , , ( delete). TTable, :

TTable* MyTable = new TTable(0)

// , MyTable

delete MyTable;

Components , . 6.1 OnClick , .

void _fastcall TFormI::ButtonlClick(TObject *Sender) {

for (int i=0; i<ComponentCount; i++)

ShowMessage(Components[i]->ClassName());

}

6.1. Components.





:


: 2015-10-01; !; : 373 |


:

:

, - , ; , - .
==> ...

1416 - | 1439 -


© 2015-2024 lektsii.org - -

: 0.009 .