Minimum_Position - Grid
Determines the minimum position for a spin button
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer Minimum_Position
| Access Type | Syntax |
|---|---|
| Read Access: | Get Minimum_Position to IntegerVariable |
| Write Access: | Set Minimum_Position to IntegerVariable/Value |
Description
Minimum_Position determines the minimum position for a spin button. This property should be set within the method onInitSpin. When the spinner is pressed, the message OnInitSpin is called. It is up to you to set the properties minimum_position and maximum_position (which will properly initialize the spinner). You can use current_item and Current_col to figure out what you called.
// Assume we have spinners in column 1 and 2. Depending on the
// column we want to set different min and max positions
Procedure onInitSpin
Integer iCol
Get current_col to iCol
If (iCol=1) Begin
Set minimum_position to 0
Set maximum_position to 10
End
Else Begin
Set minimum_position to 1
Set maximum_position to 100
End
End_procedure
Default is -32767.