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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
UK's Online Safety Act
by
Joanna from IRC
[
Today
at 01:38:37 am]
Result not being set in c...
by
ASerge
[
Today
at 01:37:27 am]
Drawing with psInsidefram...
by
wp
[
Today
at 01:23:09 am]
Return nil/null of data t...
by
VisualLab
[
Today
at 12:36:54 am]
Painting on a control - 3...
by
majolika
[
Today
at 12:30:40 am]
How C++ class multiple in...
by
VisualLab
[
Today
at 12:24:05 am]
Preparing FPC 3.2.4, poin...
by
PascalDragon
[January 23, 2025, 10:34:10 pm]
Generic function speciali...
by
PascalDragon
[January 23, 2025, 10:17:13 pm]
Resolving procedure symbo...
by
440bx
[January 23, 2025, 10:16:17 pm]
Assembler window colors
by
Kornelius
[January 23, 2025, 10:11:46 pm]
laz.virtualtrees.pas not ...
by
kapibara
[January 23, 2025, 10:07:25 pm]
Does unit recompilation r...
by
Fred vS
[January 23, 2025, 10:00:54 pm]
Out ...: Array of Somethi...
by
440bx
[January 23, 2025, 09:08:57 pm]
Generic methods inside a ...
by
PascalDragon
[January 23, 2025, 09:03:58 pm]
FPHTTPClient and SSL not ...
by
geraldholdsworth
[January 23, 2025, 08:44:33 pm]
Compiling 2 dependent pac...
by
Sergey Tkachenko
[January 23, 2025, 08:36:59 pm]
[SOLVED] Application.Proc...
by
erol
[January 23, 2025, 07:46:48 pm]
Timer difference in Linux...
by
Thaddy
[January 23, 2025, 06:51:31 pm]
مشكلة في التقارير
by
nouzi
[January 23, 2025, 06:28:58 pm]
Migrate vb.net to Lazarus...
by
Packs
[January 23, 2025, 06:16:35 pm]
Looking For Lazarus Tutor...
by
NobleStar
[January 23, 2025, 04:13:44 pm]
Getting format error load...
by
n7800
[January 23, 2025, 04:04:34 pm]
Exclude Jedi Code Formatt...
by
BrunoK
[January 23, 2025, 03:36:23 pm]
Making sense of pparser, ...
by
JernejL
[January 23, 2025, 03:16:26 pm]
No access to the wiki
by
Marc
[January 23, 2025, 02:52:43 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Optimal Height/Width functionality (Read 348 times)
backprop
Full Member
Posts: 115
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: 12527
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