captionbutton AllowPress property
Return to Introduction  Previous page  Next page
Applies to
acCaptionButton component and other components that uses TacCustomCaptionButton as ancestor class - acAppAutoRun, acTrayIcon, acFormHelp, acFormTopmost, acFormRoller.  

Declaration
property AllowPress: Boolean;  

Description
The AllowPress property controls whether CaptionButton could be pressed (if button pressed, Down property will be True).  
 
If AllowPress is True, the button will have two states - pressed and unpressed (up and down state), which can be controlled by Down property. Also two additional events will occurs - OnPressed on button pressing and OnReleased on releasing.  

See also
Down property and OnClick, OnPressed, OnReleased events.