Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
TStringGrid row height to fit resized fonts
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
New VirtualTreeView for L...
by
El Salvador
[
Today
at 11:22:37 pm]
capture apl_exec stdout
by
toby
[
Today
at 11:07:32 pm]
GetObjectProp: Sample fro...
by
af0815
[
Today
at 10:50:27 pm]
error release when memo.s...
by
dseligo
[
Today
at 10:36:24 pm]
Want to see something fun...
by
OC DelGuy
[
Today
at 10:33:29 pm]
Best way to parse file.
by
Warfley
[
Today
at 09:14:30 pm]
lazreport load image from...
by
hamacker
[
Today
at 08:55:01 pm]
is there a "Lazarus.ini"?
by
qk
[
Today
at 08:53:20 pm]
pls advice for good style...
by
KodeZwerg
[
Today
at 08:17:23 pm]
GtoH
by
circular
[
Today
at 08:08:50 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: TStringGrid row height to fit resized fonts (Read 10712 times)
asdf
Sr. Member
Posts: 310
TStringGrid row height to fit resized fonts
«
on:
December 04, 2010, 12:46:04 pm »
If we increase/decrease the font size of the StringGrid, what is the technique to automatically adjust the row height of such StringGrid ?
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
typo
Hero Member
Posts: 3051
Re: TStringGrid row height to fit resized fonts
«
Reply #1 on:
December 04, 2010, 02:31:49 pm »
Well, you can change the DefaultRowHeight property.
Logged
LazarusBrasil.Org
asdf
Sr. Member
Posts: 310
Re: TStringGrid row height to fit resized fonts
«
Reply #2 on:
December 04, 2010, 04:19:51 pm »
Could it be done
automatically
?
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
typo
Hero Member
Posts: 3051
Re: TStringGrid row height to fit resized fonts
«
Reply #3 on:
December 04, 2010, 04:32:01 pm »
Do you want to change font at run time?
Logged
LazarusBrasil.Org
asdf
Sr. Member
Posts: 310
Re: TStringGrid row height to fit resized fonts
«
Reply #4 on:
December 04, 2010, 05:44:57 pm »
Yes, like we got it in using MS Excel.
Now I used
new stringgrid1.font.size * 20 div 8
.
20 is DefaultRowHeight and 8 is default font.size .
Is it so disgusting ?
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
TStringGrid row height to fit resized fonts
TinyPortal
© 2005-2018