OnInitSpin - EntryList
Augmented to set the minimum and maximum positions for a spinner
Type: Event
Syntax
Procedure OnInitSpin
Description
OnInitSpin should be augmented to set the minimum and maximum positions for a spinner. 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 item or column 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