Button control
-
Hi there, Can someone please help me. I am programming a dialog GUI for a touch screen interface to control a motor and I want it to run the motor when someone presses the button and holds it and then the motor is stopped when it button is released. Can I use BN_PUSHED and BN_UNPUSHED? or is there another way. Does anyone have any examples that I could reference? Cheers Jim :confused:
-
Hi there, Can someone please help me. I am programming a dialog GUI for a touch screen interface to control a motor and I want it to run the motor when someone presses the button and holds it and then the motor is stopped when it button is released. Can I use BN_PUSHED and BN_UNPUSHED? or is there another way. Does anyone have any examples that I could reference? Cheers Jim :confused:
BN_PUSHED and BN_UNPUSHED are old 16bit windows notifications used for drawing owner drawn buttons. Do not use them. You should be be handling the WM_LBUTTONDOWN and WM_LBUTTONUP messages (or what ever the touch screen equivalent is) that are sent to your button control.
You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!
-
Hi there, Can someone please help me. I am programming a dialog GUI for a touch screen interface to control a motor and I want it to run the motor when someone presses the button and holds it and then the motor is stopped when it button is released. Can I use BN_PUSHED and BN_UNPUSHED? or is there another way. Does anyone have any examples that I could reference? Cheers Jim :confused:
Would my article help you? [ODBaseBtn]
- NS -
-
Would my article help you? [ODBaseBtn]
- NS -