Contains the base interface classes for widgetset controls.

This file is part of the Lazarus Component Library (LCL).

Default colors used for button faces and button text. DefBtnColors is an array type which contains the default colors used for button faces and button text in the widgetset class. TWSDragImageListResolution is a TWSCustomImageListResolution descendant. TWSControl is a TWSLCLComponent descendant. TWSControlClass is a TWSControl class reference. TWSWinControl is a TWSControl descendant. Returns the preferred size of a widget, independent of current Width, Height, child controls and scrollbars.

Values <=0 mean there is no preferred size. If the control.ControlStyle has the flag csAutoSize0x0 then 0 is allowed for this control. At the moment only TPanel has this flag.

The values must be independent of the current Width or Height, because the LCL resizes them depending on these values (circle). The values must be independent of the child controls, because the LCL moves and resizes them depending on these values (circle). The values must be independent of scrollbars, because the LCL hides them depending on these values (circle). The values are only taken if no other constraint/anchor was applied.

If the widgetset does not support some sizes, then it should set interface constraints.

TWSWinControlClass is a TWSWinControl class reference. TWSGraphicControl is a TWSControl descendant. TWSCustomControl is a TWSWinControl descendant. TWSImageList is a TWSDragImageListResolution descendant.