Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
FPSpreadsheet
»
Optimal Height/Width functionality
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
TRichMemo install shows "...
by
rvk
[
Today
at 06:08:20 pm]
Perlin Map 3D
by
Dzandaa
[
Today
at 05:04:21 pm]
Anti "churning" in solita...
by
TBMan
[
Today
at 04:30:05 pm]
Lazarus for Windows on aa...
by
msintle
[
Today
at 03:11:13 pm]
would multi threading hel...
by
MathMan
[
Today
at 03:10:30 pm]
Perlin Noise Map With BGR...
by
Boleeman
[
Today
at 01:36:13 pm]
Strange Error when I use ...
by
Thaddy
[
Today
at 01:33:23 pm]
Strange Mail from memo.mi...
by
Thaddy
[
Today
at 01:27:19 pm]
[Solved] Lazreport. Sorti...
by
Petrus Vorster
[
Today
at 11:39:09 am]
Regarding the issue of de...
by
Martin_fr
[
Today
at 11:16:29 am]
[Windows] UTF8 encoding w...
by
Thaddy
[
Today
at 10:42:15 am]
Pleas help, Synapse / Ind...
by
patyit
[
Today
at 10:25:29 am]
Default, Manual Initializ...
by
Okoba
[
Today
at 09:17:22 am]
How to observe the value ...
by
yinhuajian
[
Today
at 05:50:14 am]
Cannot see unit text - ed...
by
lorenzo
[
Today
at 04:05:13 am]
AdvancedHTTPServer: A Go-...
by
egsuh
[
Today
at 01:44:33 am]
What's wrong with my appl...
by
VisualLab
[
Today
at 01:04:16 am]
ThemeServices.OnThemeChan...
by
440bx
[
Today
at 12:16:35 am]
Cross Compile for Dos on ...
by
PascalDragon
[January 20, 2026, 10:54:36 pm]
Feature announcement: Fun...
by
PascalDragon
[January 20, 2026, 09:50:39 pm]
Access violation during d...
by
PascalDragon
[January 20, 2026, 09:49:09 pm]
IStringList...
by
PascalDragon
[January 20, 2026, 09:35:54 pm]
Strings in Free Pascal: I...
by
PascalDragon
[January 20, 2026, 09:33:09 pm]
Developing FreePascal on ...
by
HKPhysicist
[January 20, 2026, 08:59:53 pm]
[Solved] Exception in TFi...
by
d.oertel
[January 20, 2026, 06:18:05 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Optimal Height/Width functionality (Read 605 times)
backprop
Full Member
Posts: 132
Optimal Height/Width functionality
«
on:
September 02, 2024, 12:33:11 pm »
Is there Optimal Height/Width functionality for selected column/row?
I'm using this quite a bit in LibreOffice Calc, due quite different length of the data. And now I would need to know is it possible to do that from the code.
Logged
wp
Hero Member
Posts: 13334
Re: Optimal Height/Width functionality
«
Reply #1 on:
September 02, 2024, 12:45:05 pm »
Quote from: backprop on September 02, 2024, 12:33:11 pm
Is there Optimal Height/Width functionality for selected column/row?
As far as the elemental non-visual library FPSpreadsheet is concerned: no, because this library does not know about the metrics of the fonts. However, when you use the visual TsWorksheetGrid, there are functions AutoColWidth(ACol: Integer) and AutoRowHeight(ARow: Integer). But note that after opening the saved files in Calc these auto-determined sizes can be off by a few pixels because Calc and Excel add some margin to the cell dimension, and I did not find out how this is calculated.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
FPSpreadsheet
»
Optimal Height/Width functionality
TinyPortal
© 2005-2018