948_______________________________________________ 15

    Z-   -
 BringToFront  SendToBack.  Z-   
InsertControl  RemoveControl,     -
,     Parent,   .



        

void   fastcall Func(TObject *Sender);

  ,      Sender.  -
  -      , -
,   .. ,    

((TControl *)Sender)->Left += 10;

   10  .     
 , ,  Panell    :

forfint i = 0; i < Panell->ControlCount; i++)
Func(Panell->Controls[i] ) ;

    -      -
         Indl  Ind2, 
    

forfint i = Indl; i <= Ind2; i++)
Func(Panell->Controls[i]) ;

       -
        .

        Panell
, , :

forfint i = 0; i < Panell->ControlCount; i++)

ShowMessage("Ind = "+IntToStr(i) + ' ' + Panell->Controls[i]->Name);

ControlState

 ,      -
 

 TControl



enum Controls 7 { csLButtonDown, csClicked, csPalette,
csReadingState, csAlignmentNeeded,
csFocusing, csCreating, csPaintCopy,
csCustomPaint, csDestroyingHandle, csDocking );

typedef Set<Controls_7, csLButtonDown, csDocking>TControlState;

_property TControlState ControlState



 ControlState   ,   -
  , ,     -
 .        -
,   TControl.     Set  
  :