Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
To StringGrid1.AutoSizeColumns; temporarily
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
it2play - IT/S3M module r...
by
hukka
[
Today
at 02:24:02 am]
FPC and Lazarus coding st...
by
Martin_fr
[
Today
at 02:08:09 am]
Defaults for features
by
Martin_fr
[
Today
at 02:07:48 am]
Status of FPC 3.4.0 or FP...
by
creaothceann
[
Today
at 12:50:08 am]
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 12:47:50 am]
Help with diabetes projec...
by
slicke
[
Today
at 12:18:28 am]
TLazSerial : serial port ...
by
CM630
[February 06, 2026, 11:02:03 pm]
function intersect in laz...
by
wp
[February 06, 2026, 08:30:39 pm]
LCL Web Native with D2Bri...
by
xinyiman
[February 06, 2026, 04:52:10 pm]
Log in to web Data with U...
by
rvk
[February 06, 2026, 03:23:29 pm]
Free Pascal for a small e...
by
devEric69
[February 06, 2026, 02:51:51 pm]
Transparent Form: Some Th...
by
Boleeman
[February 06, 2026, 02:34:08 pm]
Notetask 1.1.0 - Free cro...
by
AlexanderT
[February 06, 2026, 02:33:56 pm]
Rolling releases Lazarus[...
by
marcov
[February 06, 2026, 02:07:36 pm]
lazarus IDE anchordock ba...
by
szlbz
[February 06, 2026, 12:53:12 pm]
Upload multipart POST req...
by
OH1KH
[February 06, 2026, 11:53:17 am]
Ininside ProjectSession, ...
by
d2010
[February 06, 2026, 10:34:50 am]
Recommendations for wasm3...
by
temp0
[February 06, 2026, 03:47:38 am]
Lazarus for Windows on aa...
by
msintle
[February 06, 2026, 01:02:01 am]
ListBox MeasureItem
by
jamie
[February 05, 2026, 11:02:02 pm]
Feature announcement: Fun...
by
PascalDragon
[February 05, 2026, 09:29:34 pm]
Improved FPC JSON-RPC sup...
by
PascalDragon
[February 05, 2026, 09:15:07 pm]
C-specific record functio...
by
440bx
[February 05, 2026, 08:38:23 pm]
What is a status of fpGUI...
by
inky
[February 05, 2026, 06:55:54 pm]
[SOLVED] How to scroll a ...
by
Hartmut
[February 05, 2026, 03:36:11 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: To StringGrid1.AutoSizeColumns; temporarily (Read 5214 times)
asdf
Sr. Member
Posts: 310
To StringGrid1.AutoSizeColumns; temporarily
«
on:
February 06, 2011, 05:19:54 pm »
Using StringGrid1.AutoSizeColumns; - This makes columns of StringGrid1
AutoSizeColumns
at all times.
I need to use it only once, what is the code to release
StringGrid.AutoSizeColumns;
?
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
Blaazen
Hero Member
Posts: 3241
POKE 54296,15
Re: To StringGrid1.AutoSizeColumns; temporarily
«
Reply #1 on:
February 06, 2011, 05:30:18 pm »
I don't understand.
For me works as expected. It autosizes Columns only once and I have to call it again if I want autosize again.
Logged
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21
Try Eye-Candy Controls:
https://sourceforge.net/projects/eccontrols/files/
asdf
Sr. Member
Posts: 310
Re: To StringGrid1.AutoSizeColumns; temporarily
«
Reply #2 on:
February 06, 2011, 05:46:04 pm »
Very strange for me, after StringGrid1.AutoSizeColumns - I could not adjust its individual .ColWidths
.
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
Blaazen
Hero Member
Posts: 3241
POKE 54296,15
Re: To StringGrid1.AutoSizeColumns; temporarily
«
Reply #3 on:
February 06, 2011, 05:55:44 pm »
I think problem will be in your grid properties.
Is your StringGrid.Options.goColSizing set to True ?
At me it is set to True and I can adjust Column.Width by mouse and also from code.
Logged
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21
Try Eye-Candy Controls:
https://sourceforge.net/projects/eccontrols/files/
asdf
Sr. Member
Posts: 310
Re: To StringGrid1.AutoSizeColumns; temporarily
«
Reply #4 on:
February 06, 2011, 06:11:52 pm »
You are right, in a plain sample project - it is as you has described.
But I really have placed .AutoSizeColumns at the end of procedure.
I have to check up my codes.
«
Last Edit: February 06, 2011, 06:26:04 pm by asdf
»
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
To StringGrid1.AutoSizeColumns; temporarily
TinyPortal
© 2005-2018