tappatappa Posted July 24, 2015 Posted July 24, 2015 Can someone explain to me how does UniSpeedButton->Down works? My guess is that SpeedButton has two states (Down and Up) and can be used as a "checkbox" (Checked true/false), but void __fastcall TForm1::ButtonSpeedClick(TObject *Sender) { ButtonSpeed->Down = !ButtonSpeed->Down; } does nothing (graphically) Quote
Ron Posted July 27, 2015 Posted July 27, 2015 You are on the right track, look at the attached example. speedbutton.zip 1 Quote
tappatappa Posted July 27, 2015 Author Posted July 27, 2015 You are on the right track, look at the attached example. Thanks for your reply. In order to make it work for a single SpeedButton I had to implement a little trick void __fastcall TForm1::ButtonSpeedAClick(TObject *Sender) { static bool speedAstate = false; ButtonSpeedA->Down = !speedAstate; speedAstate = !speedAstate; } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.