[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TToolButton.Down

Is this button Down (i.e. has it been selected)? Default false.

Declaration

Source position: comctrls.pp line 2163

published property TToolButton.Down : Boolean
  read FDown
  write SetDown
  stored IsCheckedStored
  default False;

Description

Down is a Boolean property which indicates if the tool button is in a "pressed" or "down" state. The default value for the property is False.

When the value for the property is changed to True in a check-box button (Style = tbsCheck), other buttons on the parent tool bar are also updated. Adjacent buttons with their Grouped property set to True are checked to ensure that their Down property is set to False. The button(s) are redrawn if their Down property was changed. The ToolButtonDown method in the parent tool bar is called to set the button state in the tool bar to the new property value. The button and the tool bar are redrawn following the change.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.