Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
[SOLVED] Stringgrid with different width at different columns
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
Getting a true variant pa...
by
440bx
[
Today
at 11:17:01 pm]
FPC v3.2.2 internal error
by
PascalDragon
[
Today
at 09:52:00 pm]
Problem Installing CHM He...
by
marcov
[
Today
at 09:45:21 pm]
FPC 3.2.4-rc1 available
by
JdeHaan
[
Today
at 09:40:36 pm]
Initialize list in functi...
by
PascalDragon
[
Today
at 09:34:38 pm]
How to implement uKey-bas...
by
delphius
[
Today
at 09:25:12 pm]
Lazarus Bugfix Release 4...
by
Espectr0
[
Today
at 08:56:20 pm]
[SOLVED] Heaptrc reports ...
by
Bart
[
Today
at 07:06:57 pm]
Anyone interested in help...
by
ad1mt
[
Today
at 05:28:08 pm]
Lazarus Blowfish
by
rvk
[
Today
at 05:17:17 pm]
AArch64. Slow program sta...
by
LemonParty
[
Today
at 04:46:31 pm]
Help with search and repa...
by
avk
[
Today
at 04:35:29 pm]
An Idea for a helpful uti...
by
Curt Carpenter
[
Today
at 04:33:20 pm]
Info for PTCGraph users.....
by
Handoko
[
Today
at 04:01:45 pm]
Tips for cross-compiling ...
by
Seenkao
[
Today
at 09:25:29 am]
Drawing a picture on the ...
by
DMH
[
Today
at 05:01:07 am]
How detect a keypress in ...
by
Remy Lebeau
[November 09, 2025, 07:49:50 pm]
Paradox date filter
by
tawfiq-lz
[November 09, 2025, 07:46:20 pm]
Why is there no Chinese s...
by
Ten_Mile_Hike
[November 09, 2025, 06:55:11 pm]
Convert table to JSON arr...
by
paweld
[November 09, 2025, 05:56:56 pm]
Unexpected lack of error ...
by
n7800
[November 09, 2025, 05:39:10 pm]
application crashes on st...
by
Thaddy
[November 09, 2025, 04:17:28 pm]
Blog area?
by
Martin_fr
[November 09, 2025, 02:00:17 pm]
SimpleXML
by
ednaldomoreira
[November 09, 2025, 01:45:18 pm]
What happens if you use "...
by
Thaddy
[November 09, 2025, 01:39:12 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Stringgrid with different width at different columns (Read 7424 times)
oproescu
New Member
Posts: 48
[SOLVED] Stringgrid with different width at different columns
«
on:
November 23, 2017, 04:05:38 pm »
Hallo!
How can be made a stringgrid table to permanently have different widths in different columns?
Many thanks!
«
Last Edit: November 26, 2017, 07:14:15 am by oproescu
»
Logged
jamie
Hero Member
Posts: 7306
Re: Stringgrid with different width at different columns
«
Reply #1 on:
November 23, 2017, 05:34:49 pm »
TStringGrid have a property called Columns, you need to add a column for each column you
have, in those, you can set the width and other various items for that column
Logged
The only true wisdom is knowing you know nothing
taazz
Hero Member
Posts: 5368
Re: Stringgrid with different width at different columns
«
Reply #2 on:
November 23, 2017, 06:02:57 pm »
Code: Pascal
[Select]
[+]
[-]
//change the width of the 3rd column to 150.
StringGrid1
.
ColWidths
[
2
]
:
=
150
;
Logged
Good judgement is the result of experience … Experience is the result of bad judgement.
OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64
oproescu
New Member
Posts: 48
Re: Stringgrid with different width at different columns
«
Reply #3 on:
November 24, 2017, 09:00:22 am »
Thank you taazz, it goes!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
[SOLVED] Stringgrid with different width at different columns
TinyPortal
© 2005-2018