  ___________________________________325

 ,       
  .       
OpenPictureDialog,      Dialogs  -
       
(. 5.2),   ,       -
 .

           
    :

if (OpenPictureDialogl->Execute())
Imagel->Picture->LoadFromFile(OpenPictureDialogl->FileName);

     Picture  Imagel , -
   .        -
.           
   Imagel.

          
        ,    
  .   ,    -
   .       Imagel
 AutoSize  true,      -
 :

if (OpenPictureDialogl->Execute())
(

Imagel->Picture->LoadFromFile(OpenPictureDialogl->FileName);

Forml->ClientHeight = Imagel->Height + 10;

Imagel->Top -= Forml->ClientRect.Top + (Forml->ClientHeight -
Imagel->Height) / 2;

Forml->ClientWidth = Imagel->Width + 10;

Imagel->Left = Forml->ClientRect.Left + (Forml->ClientWidth -
Imagel->Width) / 2;

1

        
   Imagel,       -
    AutoSize.

   ,    (. 5.3),   -
      .

. 5.3

  
 

5.1.1.3   

,   ,     -
 . C++Builder       ,
  .      ; 