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
The Future of FPC
by
LeP
[
Today
at 11:38:33 pm]
[ANN] fpGUI Toolkit v2.0....
by
Graeme
[
Today
at 11:05:45 pm]
Fixing Lazarus 4.4 IDE la...
by
zeljko
[
Today
at 10:59:00 pm]
; after then
by
440bx
[
Today
at 10:29:20 pm]
Reverting to Old AnchorDo...
by
Curt Carpenter
[
Today
at 10:22:34 pm]
Debian removes FPC/Lazaru...
by
tk
[
Today
at 10:21:42 pm]
Lazarus for Windows on aa...
by
Wallaby
[
Today
at 10:21:41 pm]
Form designer on MAC: Des...
by
tk
[
Today
at 09:29:44 pm]
Select rectangle of the i...
by
Phoenix
[
Today
at 09:28:35 pm]
Fast Canvas Library V1.05...
by
backprop
[
Today
at 08:15:33 pm]
Strange Error in My Code ...
by
bytebites
[
Today
at 07:55:44 pm]
TRichMemo EM_FORMATRANGE ...
by
rvk
[
Today
at 07:54:30 pm]
[SOLVED] Sort DBGrid
by
Hansvb
[
Today
at 07:49:56 pm]
fpGUI Toolkit v2.0.1 has ...
by
Graeme
[
Today
at 07:43:51 pm]
[SOLVED] Lazarus recompil...
by
Hartmut
[
Today
at 06:00:38 pm]
Status of FPC 3.4.0 or FP...
by
creaothceann
[
Today
at 05:42:35 pm]
Defining TDBDropDownCombo...
by
1HuntnMan
[
Today
at 04:12:04 pm]
Rolling releases Lazarus[...
by
ALLIGATOR
[
Today
at 03:28:46 pm]
How to determine the unkn...
by
CM630
[
Today
at 03:10:40 pm]
[SOLVED] TaChart on MAC: ...
by
tk
[
Today
at 03:02:08 pm]
DCPcrypt v2.0.6 — Cryptog...
by
cdbc
[
Today
at 02:05:57 pm]
Free Pascal for a small e...
by
avra
[
Today
at 02:03:26 pm]
Fpcupdeluxe
by
tk
[
Today
at 12:08:34 pm]
ThorVG - test (lightweigh...
by
Boleeman
[
Today
at 11:28:52 am]
External SIGSEV (Database...
by
Zvoni
[
Today
at 08:26:34 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Optimal Height/Width functionality (Read 625 times)
backprop
Full Member
Posts: 147
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: 13352
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