Sir, help me How to increment a value till i Hold Button?
-
Sir i want to know how to increment a int value when i press and hold a button , if i release the button increment must stop. please help me to solve this problem. thank u :) Satishvarma
-
Sir i want to know how to increment a int value when i press and hold a button , if i release the button increment must stop. please help me to solve this problem. thank u :) Satishvarma
You can get the code for an auto-fire button from WTL's
CBitmapButton
. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ -
Sir i want to know how to increment a int value when i press and hold a button , if i release the button increment must stop. please help me to solve this problem. thank u :) Satishvarma
E.Satish wrote:
i want to know how to increment a int value when i press and hold a button , if i release the button increment must stop
I don't want to blow my own horn, but here is my solution to this from years ago: Simple Auto-Repeat (Fire Control) Button Control: http://www.codeproject.com/buttonctrl/repeatbutton.asp[^] I haven't had occasion to use this since VC6 but it shouldn't be difficult to adapt to your needs.