formtopmost Topmost property
Return to Introduction  Previous page  Next page
Applies to
acFormTopmost and acFormHook components.  

Declaration
property Topmost: Boolean;  

Description
The Topmost property determines whether the form can always stay on top over other windows. If Topmost is True, system will place the form at the top of the Z-order and form will always on top over other windows. If Topmost is False, another windows can be placed over the form.  
 
The Topmost property of the acFormTopmost associated with the CaptionButton on the title bar (even if button is invisible) and according menu item in the SystemMenu. When you change the Topmost property, the state of caption button will changed too. When you click the caption button - Topmost property will changed accordingly to button state.  
   coolformtopmost  
 
tip The Topmost property of acFormTopmost component is highly integrated with Topmost property of the acFormHook component, and AlwaysOnTop property of the acAppBar component.  
 
So, even if you use acFormTopmost, acFormHook and acAppBar components together on one form and changing the Topmost property of the acFormTopmost component, the Topmost property of the acFormHook and AlwaysOnTop property of the acAppBar component will be changed at run-time accordingly.  

See also
OnTopmostChanged event and MenuItem property;  
acFormHook and acAppBar components.