[Overview][Resource strings][Constants][Types][Classes][Procedures and functions] Reference for unit 'fpGUI' (#fpgui)

ClipMinMax

Clip the value until it is between min and max

Declaration

Source position: fpgui.pas line 147

function ClipMinMax(

  val: Integer;

  min: Integer;

  max: Integer

):Integer;

Arguments

val

  

value to be tested

min

  

minimum allowed value

max

  

maximum allowed value

Function result

the clipped result value

Description

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.