appbar AllowedEdges property
Return to Introduction  Previous page  Next page
Applies to
acAppBar component.  

Declaration
type  
  TacAppBarPlacement = (bpLeft, bpTop, bpRight, bpBottom, bpFloat);  
  TacAppBarEdges = set of TacAppBarPlacement;  
 
property AllowedEdges: TacAppBarEdges;  

Description
The AllowedEdges property is the set of possible placements for the Application Desktop Toolbars and defines the screen edges to which the AppBar can be docked.  
 
To allow the AppBar to be docked to the left and right edge of screen — make both bpLeft and bpRight True. To allow the AppBar to be docked to the top and bottom edges — make bpTop and bpBottom properties True. To disallow the "undocking" — set the bpFloat to False.  

Example
For example, you would like to allow your AppBar to be docked to the top and bottom edges of screen, disallow docking to the left and right edges and disallow the floating. In other words, the form should be always docked to the top or bottom edge of screen only and can not be undocked.  
 
In this case you should set bpTop and bpBottom to True and other settings to False:  
 acAppBar1.AllowedEdges := [bpTop, bpBottom];  

See also
Placement and LastDockingPlace properties.