formroller TacFormRoller component
Hierarchy Properties Events See also
Return to Introduction  Previous page  Next page
Overview
The TacFormRoller component allows to reduce or expand (roll up / down) your Delphi/BCB forms without minimizing them to taskbar or system tray, giving the impression that the form is shrinking or expanding. Rolling process can be displayed with smooth animation. Since the acFormRoller is successor of acCustomCaptionButton class, component is able to add the custom button rollup on form's title bar and associated menu item to system menu.  

Key properties
Animatewhether the rolling should be animated;  
AnimateSpeeddetermines how fast the form rolls up or down;  
CaptionButtonmanages the "Roll up / down" button on the form's title bar.  
HintRollDown,  
HintRollUpthe tooltip text for caption button when the form in reduced and normal state;  
RemainHeightform height at reduced state;  
RollUpdetermines the current form state (True if reduced and False when form in normal state);  
SystemMenumanages the menu item in the system menu that associated with the caption button on the form's title bar.  

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

Snapshot

coolrollup

How to change the glyphs for rollup button ?
To change the glyphs for roll up/down buttons you have to modify the ACCB_ROLLER_UP and ACCB_ROLLER_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.