fileedit Align property
Return to Introduction  Previous page  Next page
Applies to
dcFileEdit, dcFolderEdit and dcFolderListView components.  

Declaration
type  
  TAlign = (alNone, alTop, alBottom, alLeft, alRight, alClient);  
 
property Align: TAlign;  

Description
The Align property determines how the control aligns within its container (or parent control).  
 
Use Align to align a control to the top, bottom, left, or right of a form or panel and have it remain there even if the size of the form, panel, or component that contains the control changes.  
 
For example, to use a panel component with various controls on it as a tool palette, change the panel's Align value to alLeft. The value of alLeft for the Align property of the panel guarantees that the tool palette remains on the left side of the form and always equals the client height of the form.  
 
The default value of Align is alNone, which means a control remains where it is positioned on a form or panel. Specify another value to align the control. Use one of these possible values:  

ValueMeaning  


alNoneThe component remains where it was placed on the form or panel. This is the default value.  
alTopThe component moves to the top of the form and resizes to fill the width of the form. The height of the component is not affected.  
alBottomThe component moves to the bottom of the form and resizes to fill the width of the form. The height of the component is not affected.  
alLeftThe component moves to the left side of the form and resizes to fill the height of the form. The width of the component is not affected.  
alRightThe component moves to the right side of the form and resizes to fill the height of the form. The width of the component is not affected.  
alClientThe component resizes to fill the client area of a form. If a component already occupies part of the client area, the component resizes to fit within the remaining client area.  

Note
If Align is set to alClient, the control fills the entire client area so that it is impossible to select the parent form by clicking on it. In this case, select the parent by selecting the control on the form and pressing Esc, or by using the Object Inspector.  
 
Any number of child components within a single parent can have the same Align value, in which case they stack up along the edge of the parent form or panel. The child controls stack up in z-order. To adjust the order in which the controls stack up, drag the controls into their desired positions.  
File not found.