Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Description

Set the range of a number box user control on the given user window so that there is a set minimum and maximum value that cannot be exceeded.

Functional area

User Window

Command syntax

Syntax

setNumBoxRange userControlID minVal maxVal

Arguments

NameTypeRequiredComments
maxValfloat/intyesMaximum number that the num box will display
minValfloat/intyesMinimum number that the num box will display
userControlIdintyesID of user control to apply command to

Flags

None

Return value

void

Examples

// Create a Check Box User Control.
int $windowId;
int $controlId;
float $value = 10.0;

// First create a User Window to place the Control on
$windowId = `createWindow "MyWindow"`;

// Create the Control on the Window, passing
// in the Window Id of the User Window we
// just created. Make floating point, specifying the initial
// value and a spinner
$controlId = `createNumBox $windowId -num $value -spin -flt`;
setNumBoxRange $controlId 10.0 20.0;

Additional information

Related commands

  • No labels