[Overview][Resource strings][Constants][Types][Classes][Procedures and functions] |
Clip the value until it is between min and max
Source position: fpgui.pas line 147
function ClipMinMax( |
val: Integer; |
min: Integer; |
max: Integer |
):Integer; |
val |
|
value to be tested |
min |
|
minimum allowed value |
max |
|
maximum allowed value |
the clipped result value
Clip the value until it is between min and max. It is currently used internally in the TScrollBarSlider.EvMouseMove to limit the amount the user can scroll the scrollbar thumb button.