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
Reset doesn't open ReadOn...
by
ASerge
[
Today
at 05:39:50 pm]
FPC says file exists, Laz...
by
cdbc
[
Today
at 05:06:05 pm]
Lazarus IDE built for LCL...
by
zeljko
[
Today
at 03:28:13 pm]
Lazarus Bugfix Release 4....
by
uganof
[
Today
at 03:04:05 pm]
Add Help to an Applicatio...
by
1HuntnMan
[
Today
at 02:41:40 pm]
composition instead of in...
by
BildatBoffin
[
Today
at 01:16:31 pm]
Update a table with an Au...
by
Zvoni
[
Today
at 01:14:15 pm]
Is it me or is there some...
by
jamie
[
Today
at 12:03:37 pm]
bgraformatui.pas(26,12) W...
by
marcov
[
Today
at 11:40:06 am]
Variable initialization
by
BildatBoffin
[
Today
at 11:35:22 am]
unit ProjectDescriptorTyp...
by
Martin_fr
[
Today
at 09:41:17 am]
FreePascal/Lazarus docume...
by
MarkMLl
[
Today
at 08:39:13 am]
Lazarus 4.x - ZeosdBo
by
essence-ciel
[
Today
at 08:29:57 am]
Fpcupdeluxe
by
DonAlfredo
[
Today
at 08:22:12 am]
BGRAVirtualScreen - weird...
by
backprop
[
Today
at 08:20:04 am]
Question about fpreport
by
ginoo
[
Today
at 07:17:44 am]
Status of Fresnel Project...
by
dbannon
[
Today
at 06:11:31 am]
https://live.freepascal.o...
by
PierceNg
[
Today
at 05:15:59 am]
Lazarus Woes (4.2)
by
Martin_fr
[March 04, 2026, 09:22:32 pm]
gitlab issues menu
by
n7800
[March 04, 2026, 07:52:13 pm]
The growth of computers
by
LeP
[March 04, 2026, 07:04:17 pm]
Problem to restore previo...
by
Hartmut
[March 04, 2026, 05:19:29 pm]
How to use Lazserial
by
CM630
[March 04, 2026, 03:27:11 pm]
Don't Look Here
by
Joanna
[March 04, 2026, 02:53:40 pm]
TidSimpleServer Error whi...
by
jamie
[March 04, 2026, 12:27:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: To StringGrid1.AutoSizeColumns; temporarily (Read 5223 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