Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
TStringGrid row height to fit resized fonts
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
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
TAChart Replace Y-Axis Nu...
by
old_geek
[
Today
at 06:44:55 pm]
SQL - looks easy but I ca...
by
rvk
[
Today
at 06:39:19 pm]
IBX - IBDataSet - table w...
by
Nicole
[
Today
at 06:37:30 pm]
TRegExpr Help
by
Tony Stone
[
Today
at 06:36:38 pm]
Firebird 4 - "SUM" with w...
by
Nicole
[
Today
at 06:34:27 pm]
Create and free TStringLi...
by
Thaddy
[
Today
at 06:31:26 pm]
Lazarus oscilloscope - FP...
by
Thaddy
[
Today
at 06:19:53 pm]
Example code for IR compo...
by
ccrause
[
Today
at 06:12:48 pm]
Q: System code for Indy S...
by
Thaddy
[
Today
at 06:11:59 pm]
Erro ao abrir Lazarus "Du...
by
mdcfaria
[
Today
at 05:59:00 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: TStringGrid row height to fit resized fonts (Read 10750 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