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) Quote 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 Quote 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; } Quote Link to comment Share on other sites More sharing options...
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.