[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Adjust space round border of this control
Source position: line 0
procedure AdjustBorderSpace( |
var RemainingClientRect: TRect; |
var CurBorderSpace: TRect; |
Left: Integer; |
Top: Integer; |
Right: Integer; |
Bottom: Integer |
); |
var RemainingClientRect: TRect; |
var CurBorderSpace: TRect; |
const Space: TRect |
); |
RemainingClientRect: remaining clientrect without CurBorderSpace
CurBorderSpace: current borderspace around RemainingClientRect
Left, Top, Right, Bottom: apply these borderspaces to CurBorderSpace
CurBorderSpace will be set to the maximum of CurBorderSpace and Left, Top, Right, Bottom.
RemainingClientRect will shrink.
RemainingClientRect will not shrink to negative size.
lazarus-ccr.sourceforge.net |