Is there anything like a wxPushButton?

Carsten A. Arnholm arnholm at offline.no
Thu Nov 22 15:30:05 PST 2007


Carsten A. Arnholm wrote:
> 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.

Hi again,

Just to clarify: I am only looking for tips how to handle the pushbutton 
GUI, I have the serial port etc. sorted out.

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








More information about the wx-users mailing list