TCustomHeaderControl.UpdateState procedure
Updates the State property in one or more of the Sections on the header control.
Declaration
procedure UpdateStateDescription
UpdateState is a method used to update the drawing state for one or
more of the Sections on the header control. When Enabled is set to
True,
it ensures that the selected section on the control has its State property set
to the Up (hsNormal) or Down (hsPressed) drawing style as required. If a mouse
down event has not reported for the control, the section under the mouse
pointer is updated to use hsHot in its State property.
UpdateState visits each of the THeaderSection instances in Sections, and sets their State property to hsNormal if it is not the selected or highlighted section on the control.
UpdateState is called from the MouseEnter and MouseLeave methods when the control gains or loses mouse capture for the control. It is also called from MouseDown, MouseMove, and MouseUp when mouse events are handled for the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
