Prgramatically Press a CButton
-
I am doing to embedded programming with a footswitch, I want a CButton to be 'pressed' when the footswitch is pressed and released when the footswitch is released? Does anyone know how I can programatically give the CButton the 'Pressed' look? Cheers Asim Hussain e: asim@jawache.net w: www.jawache.net
-
I am doing to embedded programming with a footswitch, I want a CButton to be 'pressed' when the footswitch is pressed and released when the footswitch is released? Does anyone know how I can programatically give the CButton the 'Pressed' look? Cheers Asim Hussain e: asim@jawache.net w: www.jawache.net
I suggest creating an owner drawn button that draws itself as pressed when it's truly pressed as well as when it's
pressed
property istrue
. Them it's a simple matter of doing:m_button.setPressed (true);
m_button.Invalidate(); // these calls could/should be
m_button.UpdateWindow(); // included in setPressed()/ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com
-
I am doing to embedded programming with a footswitch, I want a CButton to be 'pressed' when the footswitch is pressed and released when the footswitch is released? Does anyone know how I can programatically give the CButton the 'Pressed' look? Cheers Asim Hussain e: asim@jawache.net w: www.jawache.net