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

TColorButton.GetDisabledPattern

Gets a bitmap with the disabled pattern for the control.

Declaration

Source position: dialogs.pp line 350

protected function TColorButton.GetDisabledPattern: TBitmap; virtual;

Function result

TBitmap instance with the disabled pattern drawn for the control.

Description

GetDisabledPattern is a TBitmap function used to get the bitmap with the disabled pattern drawn on the control. It is used when the Enabled property (in the control or one of its parents) is set to False.

GetDisabledPattern ensures that a TBitmap instance has been created and assigned to an internal member for the class instance. The bitmap contains a pattern with dotted lines that indicate the control cannot accept input values. The allocated bitmap is freed (when assigned) in the destructor for the class instance.

GetDisabledPattern is called from the DrawGlyph method when its button state argument is set to bsDisabled.


Version 4.0 Generated 2025-05-03 Home