Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change font size at StringGrid in FM2

How can I change font size in StringGrid in rad studio XE3 - FM2 Firemonkey 2 not firemonkey 1

like image 615
user1581036 Avatar asked Dec 28 '25 16:12

user1581036


1 Answers

I searched internet and it seems that there is no way to resize text into StringGrid.

You can resize header using FindStyleResource('header'):

Change text size in Firemonkey StringGrid

but it is not clear what to use (if any) instead of 'header' so you can change text in the rows. Delphi help files are not useful at all as I cannot find all available parameters that I can use in FindStyleResource function.

As for the answer below:

StringGrid1.Cells[X,Y] do not have a StyleLookup property.

Also, a some people suggested to use OnDrawCell procedure but again it looks like StringGrid is missing this (at least in Delphi XE3 Firemonkey).

like image 61
Georgi.Bonchev Avatar answered Dec 31 '25 18:12

Georgi.Bonchev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!