Is there anything like a wxPushButton?

Carsten A. Arnholm arnholm at offline.no
Thu Nov 22 14:07:42 PST 2007


Hi,

I am using WX 2.8.6 on WinXP and Kubuntu

My application controls a motor over a serial port. I want to implement a 
feature using a "pushbutton", i.e. as long as the button is being pushed, 
the motor runs. When the button is released the motor stops. I also want the 
button to take a different colour when it is pressed. Finally, it should be 
possible for the user to press the button, and it should also be possible 
for the program to set the button in a pressed state, with the same effect.

How can I do this with wxWidgets? Is there something like a wxPushButton to 
do it? Or maybe it can be done with the standard wxButton somehow?

Any tips appreciated.

-- 
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457 








More information about the wx-users mailing list