, , , , _______________________997

  Color  FillStyle.  Color  TColor 
,       , 
 FillStyle ,       .
 FillStyle = fsSurface,   ,   Color,  
   .  FillStyle = fsBorder,  , -
    ,   Color,    Co-
lor  .



1. Imagel->Canvas->Brush->Color = clWhite;

Imagel->Canvas->FloodFill(X,Y,Imagel->Canvas->Pixels[X][Y],fsSurface) ;

       
Imagel  ,      (X, Y)  
  ,    . ,       -
  OnClick  Imagel,  ,  -
,    ,      .

2. Imagel->Canvas->Brush->Color = clWhite;

Imagel->Canvas->FloodFill(X, Y, clBlack, fsBorder);

       
Imagel  ,      (X, Y)  
,   .      
.

Focused

,      
 TWinControl



DYNAMIC bool _fastcall Focused(void);



 Focused ,     , .. -
    .  true,     ,  false 
              -
.

FrameRect

      
 TCanvas



void   fastcall FrameRect(const Windows::TRect &Rect) ;



 FrameRect        Rect,
    Brush.    1 . 
    .    Rectangle , 
    (  Rectangle    Pen)   
 (  Rectangle ).