user2248507
user2248507

Reputation: 3

how can I change the font size in runtime generated button in firemonkey desktop application

I want to change the font size in runtime generated buttons in my firemonkey desktop application in delphi xe5, I tried:

BArray[I].Font.Family:='Arial';
BArray[I].Font.Size:=40;

But all buttons are with small and default font.

Upvotes: -1

Views: 906

Answers (1)

LHristov
LHristov

Reputation: 1123

remove stylings first

BArray[i].StyledSettings:=[]

Upvotes: 1

Related Questions