Lazarus

Programming => LCL => Topic started by: selukwe on June 12, 2021, 08:53:46 am

Title: SpeedButton staying visually unchanged
Post by: selukwe on June 12, 2021, 08:53:46 am
Can a SpeedButton be set/programmed so that when clicked on it will not press? I have in mind such a behavior that it will trigger the click event but will not move down and will remain in an unchanged state.

If this is not possible, could someone suggest a button component that can do this? But this would preferably have to be a SpeedButton type of button so that no focus will remain on the button after it has been clicked.
Title: Re: SpeedButton staying visually unchanged
Post by: speter on June 12, 2021, 11:46:18 am
You could probably simply use a TPanel.

cheers
S.
Title: [Solved] Re: SpeedButton staying visually unchanged
Post by: selukwe on June 12, 2021, 12:55:33 pm
Simple and ingenious, works great as expected! Sometimes the solutions lie too close to be seen until another person looks at them. Kudos to you and big THANKS!
TinyPortal © 2005-2018