Sign in Join
FPDoc Onlineexperiment

TCoolBand.CalcControlLeft function

Member of TCoolBandprotectedIn unit ComCtrls

Calculates the left coordinate for the Control in the band.

Declaration

pascal
function CalcControlLeft: Integer

Function result

Offset in the band where the Control is displayed.

Description

Reserves space needed for elements in the TCoolBand instance, including:

  • Indent spacing for the Grabber (Sizing Grip)
  • Horizontal spacing
  • The space needed for the Text
  • The space needed for the Image (scaled to the current PPI)

The return value contains the offset in the band where the Control is displayed.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.