Skip to main content

SetMinMax

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

bool SetMinMax(char[] panel, char[] control, float min, float max);

Description

Sets the minimum and maximum value of: certain panel controls The panel is accessed by its individual panel name that is entered in the Panel Designer.

Parameters

  • panel: Panel name, restricted to 128 characters. "" – references all loaded panels.
  • control: Name of the control, restricted to 128 characters. "" – references all elements on the panel.
  • minimum: Minimum value to be set.
  • maximum: Maximum value to be set.

Return Values

If the values were set, the return value is 1, else 0.

Example

SetMinMax("Measurements", "MyLevelMeter", 50, 100);
SetControlBackColorSetControlPropertySetControlColorsSetDefaultControlColors