User Tools

Site Tools


repeat_set_repeat_button_rate_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== REPEAT (set repeat button rate) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

REPEAT( time )

blk2blue.jpg

REPEAT Specifies the rate of event generation.
time An integer constant containing the rate to set, in hundredths of a second.

The REPEAT attribute (PROP:REPEAT) specifies rate of event generation for automatically repeating buttons. For a BUTTON control with the IMM attribute, this is the generation rate for EVENT:Accepted. For a SPIN control, this is the generation rate for EVENT:NewSelection generated by the spin buttons.

Assigning a zero (0) to PROP:REPEAT resets the default setting, any other value sets the repeat rate for the control.

Example:

MDIChild WINDOW('Child One'),AT(0,0,320,200),MDI,MAX,HVSCROLL

         BUTTON('Press Me'),AT(10,10,40,20),USE(?PressMe),IMM,REPEAT(100)  !1/second

         SPIN(@n3),AT(60,10,40,10),USE(SpinVar),RANGE(0,999),REPEAT(100)   !1/second

        END

CODE

OPEN(MDIChild)

?PressMe{PROP:Delay} = 50  !Set delay to 1/2 second

?SpinVar{PROP:Delay} = 50  !Set delay to 1/2 second

?PressMe{PROP:Repeat} = 5  !Reset repeat to 5 hundredths of a second

?SpinVar{PROP:Repeat} = 5  !Reset repeat to 5 hundredths of a second

See Also:

IMM

DELAY

repeat_set_repeat_button_rate_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1