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
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
PasLLM - LLM Inference En...
by
matthius
[
Today
at 01:41:45 pm]
Theoretical question. Laz...
by
Petrus Vorster
[
Today
at 01:09:19 pm]
Stacked bars not drawn pr...
by
apeoperaio
[
Today
at 12:57:01 pm]
New book on Object Pascal
by
matthius
[
Today
at 12:55:36 pm]
[SOLVED] Assembler error ...
by
dbannon
[
Today
at 12:55:16 pm]
The compiler fails to war...
by
Martin_fr
[
Today
at 12:44:31 pm]
four squares (inc)
by
speter
[
Today
at 11:25:05 am]
Regarding the issue of de...
by
Martin_fr
[
Today
at 10:20:35 am]
Dice (raylib + kraft phys...
by
fcu
[
Today
at 09:01:24 am]
CudaText editor (written ...
by
AlexTP
[
Today
at 07:57:52 am]
Lazarus seems to be makin...
by
Boleeman
[
Today
at 07:54:25 am]
[SOLVED] Lazreport PDF
by
Petrus Vorster
[
Today
at 07:42:59 am]
Maze Makers: Modified Cyl...
by
Boleeman
[
Today
at 07:20:10 am]
How to set the Excel cell...
by
dodgex
[
Today
at 04:51:41 am]
Embedded qss stylesheets ...
by
jns
[January 14, 2026, 11:27:39 pm]
TSpeedButton qt6 styleshe...
by
big_M
[January 14, 2026, 04:53:29 pm]
How to prevent onDropFile...
by
Hansaplast
[January 14, 2026, 04:51:23 pm]
Linked List Using Two Cla...
by
Thaddy
[January 14, 2026, 03:39:08 pm]
unit init, finalize and i...
by
Zvoni
[January 14, 2026, 02:48:57 pm]
Locate current record aft...
by
Zvoni
[January 14, 2026, 09:59:08 am]
Drag and Drop Files; onDr...
by
Hansaplast
[January 14, 2026, 09:39:25 am]
Lazarus and Libre Office
by
MarkMLl
[January 14, 2026, 09:22:14 am]
scat bikes (inc)
by
speter
[January 14, 2026, 04:38:11 am]
Effect of adding properti...
by
n7800
[January 14, 2026, 04:13:36 am]
solution for installing F...
by
BradleySlavik
[January 14, 2026, 02:37:22 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: TStringGrid row height to fit resized fonts (Read 11443 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