tappatappa Posted July 24, 2015 Share 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) Link to comment Share on other sites More sharing options...
Ron Posted July 27, 2015 Share Posted July 27, 2015 You are on the right track, look at the attached example. speedbutton.zip 1 Link to comment Share on other sites More sharing options...
tappatappa Posted July 27, 2015 Author Share 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; } Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now