P positrom2 Active Member Licensed User Longtime User Jul 23, 2012 #1 Hi, I like to have a cursor moving as long as I hold down a button. I was assuming the button_down instead of button_click would do it, but nevertheless with the code below the cursor only moves when clicking the button. Code: Copy Sub btnTest_down If btntest_down=True Then cursor=cursor+10 End If btnTest_flag=True 'used to update the cursor appearance End Sub thanks for advice, positrom2
Hi, I like to have a cursor moving as long as I hold down a button. I was assuming the button_down instead of button_click would do it, but nevertheless with the code below the cursor only moves when clicking the button. Code: Copy Sub btnTest_down If btntest_down=True Then cursor=cursor+10 End If btnTest_flag=True 'used to update the cursor appearance End Sub thanks for advice, positrom2
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2012 #2 Button_Down event is raised once. You will need to start a timer in this sub and disable the timer in Button_Up. The cursor should be updated in the timer event. Upvote 0
Button_Down event is raised once. You will need to start a timer in this sub and disable the timer in Button_Up. The cursor should be updated in the timer event.