Integer increase/decrease format - %dd

Supplies a spin control button to go with an %rd (Edit Integer) edit box. %dd (Spin for Integer) takes one integer argument that specifies the amount the value in the edit box is to be increased or decreased when the user clicks on the control. The resulting value is always a multiple of the increase. A call-back function can be supplied with the corresponding %rd format. %dd may also be used with %rs (Edit String).

For example:

        INTEGER val,i
        val=0
c---    %`rd displays an integer - not user changeable ---
        i=winio@('%ca[Spin]%dd%`rd',5,val)
        END

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited