button kept pushed
-
Hi all, I've a button to move to the next point in a plot when the button is pushed. The matter is that i must click on the button many times if i wanna continue to pass to the next point in the plot, while i would like to obtain this keeping clicked the button. How can i do that ? Thanx in advance, Desmo16.
-
Hi all, I've a button to move to the next point in a plot when the button is pushed. The matter is that i must click on the button many times if i wanna continue to pass to the next point in the plot, while i would like to obtain this keeping clicked the button. How can i do that ? Thanx in advance, Desmo16.
OnButtonDown: start a timer OnTimer: move the selection to the next point OnButtonUp: stop the timer
-
Hi all, I've a button to move to the next point in a plot when the button is pushed. The matter is that i must click on the button many times if i wanna continue to pass to the next point in the plot, while i would like to obtain this keeping clicked the button. How can i do that ? Thanx in advance, Desmo16.
I suggest you override CButton and create a button class that repeats the BN_CLICKED event. Have a look at Joe Newcomer's article here[^] for tips on how to accomplish this behaviour. You could even have more than one timer event to make the BN_CLICKED events generated with higher frequency if the button is kept down for a longer time. -- Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998
"...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above -
Hi all, I've a button to move to the next point in a plot when the button is pushed. The matter is that i must click on the button many times if i wanna continue to pass to the next point in the plot, while i would like to obtain this keeping clicked the button. How can i do that ? Thanx in advance, Desmo16.
Desmo16 wrote:
The matter is that i must click on the button many times if i wanna continue to pass to the next point in the plot, while i would like to obtain this keeping clicked the button. How can i do that ?
Set timer and send BN_CLICKED message from it!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You