delphifiremonkeydelphi-xefiremonkey-style

Firemonkey SpeedButton / Button


In Firemonkey, what's the "MAGIC" to make the buttons looks like below?

enter image description here

For me, most important is the size of the image and the layout of the text inside the button, but how to do this in firemonkey? What properties i have to confuigure? This was so easy in VCL.

I´m using speedbutton and imagelist, both in VCL and Firemonkey.

I'm having trouble with simple things like that :(

I do not even think when i have to do something more complex in firemonkey, almost returning to VCL, Sad.

Thanks.


Solution

  • In addition to other answers, I suggest you to use TRectangle for each kind of visual components. You can create a new custom component using TRectangle, TImage and TLabel together. Or you can just use them together in each component for everytime.

    With TRectangle, you can manage radius, corners, stroke, background colors etc. The only thing you have to know that be sure your TRectangle components' HitTest parameters are active and inner components' (TImage and TLabel) parameters are not active.