formtopmost TacFormTopmost component
Hierarchy Properties Events See also
Return to Introduction  Previous page  Next page
Overview
The acFormTopmost component controls Z-order (Topmost property) of your forms and allows to place your forms over other windows. Since acFormTopmost is successor of acCustomCaptionButton class, it able to add the custom button topmost on form's title bar and associated menu item to system menu. Add "Always on top" feature to your forms without single line of code!  

Key properties
CaptionButtonmanages the "Roll up / down" button on the form's title bar.  
SystemMenumanages the menu item in the system menu that associated with the caption button on the form's title bar.  
Topmostdetermines the form state. True when form is "Always on top" and False when form in normal state.  

key events
OnTopmostChangedoccurs when user clicks the caption button or selects the menu item in the system menu associated with this button.  

Snapshot
coolformtopmost

How to change the glyphs for "Always On Top" button ?
To change the glyphs for "Always On Top" on buttons you have to modify the ACCB_TOPMOST_UP and ACCB_TOPMOST_DOWN bitmap resources in the "CaptionButtons.res" file of the AppControls pack. You can change them using standard Image Editor program which supplies with every Delphi/BCB version.  
 
After modifying of these glyphs in the "CaptionButtons.res", they will always with you in any programs, so you will do not need to specify the glyphs every time when you drop component onto form.  

See also
Other components which contains a built-in caption button: acAppAutoRun, acTrayIcon, acFormHelp, acFormTopmost, acFormRoller.