stacker
stacker

Reputation: 613

Edit custom style of TButton in Firemonkey

In my Firemonkey HD application I have to edit the default style of a TButton. Opening the TStyleBook resources I've seen that the TLayout object of each buttons have two different sub-components:

When I try to add a TPanel, TRectangle or TImage to my TLayout I see that, after saving and applying the changes, running my application the OnClick event of my TButton doesn't work.

Any advices?

Upvotes: 0

Views: 594

Answers (1)

Mike Sutton
Mike Sutton

Reputation: 4211

Clear the HitTest property of any components you add which you do not want to respond to mouse clicks and gestures.

Upvotes: 1

Related Questions