EtheaDev / StyledComponents

Components similar to Delphi VCL Buttons, Toolbar, DbNavigator, BindNavigator, ButtonGroup and CategoryButtons with Custom Graphic Styles, and an advanced, full-customizable TaskDialog, also with animations!
Apache License 2.0
152 stars 34 forks source link

Double-Clicking on TStyledButton in design time does not behave correctly #30

Closed lancerasmussen closed 2 months ago

lancerasmussen commented 2 months ago

Standard behavior when double-clicking on a TButton or similar component is to When Double-clicking on a TButton (or similar) component is to connect or create and connect to the OnClick event so that code can be entered into the OnClick event.

Behavior of double-clicking on the TStyledButton brings up the StyledButton Editor and should not. Right-clicking on the TStyledButton and selecting the editor behaves correct and should be the standard pathway to editing the button styling.

Test was the StyledButtonsVCLStyled demo and opening the FAboutForm form and double-clicking on the OK button.

carloBarazzetta commented 2 months ago

Yes Lance, the standard and absurd way is to open OnClick event, but I hate using direct OnClick event instead of using Actions... I want to discourage developers from this nonsensical approach... Do you agree with me? I made some small choices to "break" backwards compatibility, one is this, the other is the "crHandPoint" cursor by default ;-)

carloBarazzetta commented 2 months ago

Can I close this issue?