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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
looping direction control...
by
TRon
[
Today
at 05:28:51 am]
This is me back in Lazaru...
by
Handoko
[
Today
at 03:16:57 am]
Forum slow for others as ...
by
440bx
[
Today
at 03:04:21 am]
Win11 - How to start cons...
by
dculp
[
Today
at 12:21:51 am]
[SOLVED] Download link to...
by
Wings2018
[April 18, 2025, 10:37:08 pm]
Best way to exchange data...
by
Hansvb
[April 18, 2025, 10:16:58 pm]
Testing with SQLite3DataS...
by
1HuntnMan
[April 18, 2025, 10:01:55 pm]
Doing C-like linking of m...
by
domasz
[April 18, 2025, 09:45:42 pm]
2d "platform" game sugges...
by
TBMan
[April 18, 2025, 08:18:00 pm]
First it's a square, then...
by
TBMan
[April 18, 2025, 08:13:13 pm]
FPC 3.2.2 using Result wi...
by
Remy Lebeau
[April 18, 2025, 08:07:23 pm]
accessing array members i...
by
TRon
[April 18, 2025, 08:05:23 pm]
problem with easylazfreet...
by
Bart
[April 18, 2025, 06:40:34 pm]
My kernel cannot response...
by
TYDQ
[April 18, 2025, 04:23:48 pm]
ERROR:Generating PIC, but...
by
TYDQ
[April 18, 2025, 04:22:45 pm]
Feature announcement: Fun...
by
PascalDragon
[April 18, 2025, 02:53:37 pm]
FPC 3.2.2 fpc_chararray_t...
by
PascalDragon
[April 18, 2025, 02:47:47 pm]
Rainbow Dots Animated in ...
by
Boleeman
[April 18, 2025, 02:46:39 pm]
Edmond Harris Spiral: Ver...
by
Boleeman
[April 18, 2025, 02:37:32 pm]
Silver Pascal Coder - Lat...
by
silvercoder70
[April 18, 2025, 01:23:50 pm]
[SOLVED] SQLite3 REINDEX
by
CharlyTango
[April 18, 2025, 12:22:22 pm]
Is this Stupid? What do y...
by
JD
[April 18, 2025, 11:53:26 am]
Amoeba Animated: Not that...
by
Dzandaa
[April 18, 2025, 11:35:43 am]
THashedStringList - do we...
by
Thaddy
[April 18, 2025, 09:53:43 am]
Managing linked list as i...
by
cdbc
[April 18, 2025, 08:30:34 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: To StringGrid1.AutoSizeColumns; temporarily (Read 5097 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