Skip to content

Maximum_Position - Grid

Determines the maximum position for a spin button

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer Maximum_Position
Access Type Syntax
Read Access: Get Maximum_Position to IntegerVariable
Write Access: Set Maximum_Position to IntegerVariable/Value

Description

Maximum_Position determines the maximum 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.