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

Suggestion for StyledButton component #17

Closed Edilsonpaio closed 4 months ago

Edilsonpaio commented 5 months ago

I want to congratulate you on the StyledButton component. Fantastic! I would suggest two implementations:

I believe it would be even better with these implementations.

Edilson Paio

carloBarazzetta commented 5 months ago

Hello Edilson, 1) the Background transparency is available if you use TStyledGraphicButton or TStyledSpeedButton, because they inherits from TGraphicControl, but don't have TabStop and Focus, because they are only a "graphic surface". TStyledButton and TStyledBitBtn inherites from TCustomControl that have a "windows handle" but not supports transparency, like in classic TButton or TBitBtn, and you can TabStop and Focus on it. 2) The Glyph property is implemented into StyledButtons only for backward compatibility and the capability to "Capture SVG image" is not available. But I reccommend to use an ImageList capable to use SVG Icons (like my SVGIconImageList library), or a SVGIconImageCollection + VirtualImageList (if you have Delphi 10.4+). Then, you can attach the ImageList to the StyledButton or to an ActionList, so you can attach the Actions to the Action of the StyledButton. I hope to help you...

carloBarazzetta commented 4 months ago

No feedback... closed.