250_____________________________________________ 4

    C++Builder  Constraints . 
       ,   
   ,     OnResize
    ,  . ,
    OnResize  Panel 1 

if (Panell->Width < 100) Panell->Width = 100;

if(Panell->Width > 200) Panell->Width = 200;

          100
 200 .  

if (Width > 600) Width = 600;

if (Width < 500) Width = 500;

    OnResize      -
 .         -
  ,     .

        -
  Windows.   6   6.3     -
.      ,   
:

class TFormI : public TForm
(

private:         // User declarations

void _fastcall OnGetMinMaxInfo(TWMGetMinMaxInfos Message);

public:          // User declarations

BEGIN_MESSAGE_MAP

MESSAGE_HANDLER(WM_GETMINMAXINFO, TWMGetMinMaxInfo,
OnGetMinMaxInfo)

END_MESSAGE_MAP(TComponent)
);

void _fastcall TFormI::OnGetMinMaxInfo(TWMGetMinMaxInfoS a)

(

a.MinMaxInfo->ptMinTrackSize.x = 180
a.MinMaxInfo->ptMaxTrackSize.x = 300
a.MinMax!nfo->ptMinTrackSize.y = 150
a.MinMaxInfo->ptMaxTrack3ize.y = 300;

a.MinMaxInfo->ptMaxPosition.x = BoundsRect.Left;

a.MinMax!nfo->ptMaxPosition.y = BoundsRect.Top;

       
  150  300    ( ptMinTrackSize.y 
ptMaxTrackSize.y)  180  300    ( ptMinTrackSize.x 
ptMaxTrackSize.x),        
 (ptMaxPosition.x  ptMaxPosition.y)    
  .         ,
         .

4.2.5  

         
     ScaleBy.   :

void _fastcall ScaieByfint M, int D);