Delphi Firemonkey button in tTabControl does not respond

Asked

Viewed 185 times

-1

I’m creating an app with Berlin Starter Edition. I put a tTabControl in the Form, I created a Tab and put a tButton in it. Both the tTabControl as to the tButton are Enabled. But when I run the program, the button doesn’t react (as if it wasn’t Enabled). Does anyone have any tips? Grateful.

inserir a descrição da imagem aqui


The button does not react because in Style of tTabControl was inserted a tRectangle to give background color. Although the button text appears, I am clicking on tRectangle. No use sending the tRectangle back and not the button forward. You have to find another way to give background color to the tTabControl other than by inserting a tRectangle in the Style.

Someone has a tip?

1 answer

0

The solution is just to mark the property Enabled of tRectangle as False.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.