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
Status of Missile Command...
by
TBMan
[
Today
at 03:42:52 am]
About the Class View
by
yinhuajian
[
Today
at 03:03:33 am]
Does FreePascal have a WM...
by
CM630
[December 15, 2025, 11:20:24 pm]
AVRPascal – free code edi...
by
ackarwow
[December 15, 2025, 10:40:17 pm]
Why does the call via fun...
by
ASerge
[December 15, 2025, 10:06:19 pm]
TLazSerial : serial port ...
by
CM630
[December 15, 2025, 09:56:09 pm]
Question re. FCL's ssocke...
by
jamie
[December 15, 2025, 09:23:35 pm]
connecting to mariadb
by
alanyoung
[December 15, 2025, 05:57:03 pm]
delete cookies
by
Leledumbo
[December 15, 2025, 05:14:27 pm]
[hacked for now] Changing...
by
jamie
[December 15, 2025, 04:40:15 pm]
Error: Enumeration symbol...
by
nanobit
[December 15, 2025, 04:17:38 pm]
AI interactions
by
Zvoni
[December 15, 2025, 02:19:48 pm]
Recomendations for conver...
by
kompustelnik
[December 15, 2025, 11:20:05 am]
Qt6 / X11: problem with G...
by
paweld
[December 15, 2025, 11:14:43 am]
[Solved] Lookup field: er...
by
BlueIcaro
[December 15, 2025, 09:59:57 am]
LCL Web Native with D2Bri...
by
egsuh
[December 15, 2025, 08:10:14 am]
Access Violation - Databa...
by
Xenno
[December 15, 2025, 06:21:52 am]
SpkToolbar custom update
by
wp
[December 14, 2025, 11:55:55 pm]
MVP made easier.
by
cdbc
[December 14, 2025, 05:14:40 pm]
Lazarus is not working
by
Fred vS
[December 14, 2025, 05:14:20 pm]
TIBDataSet "Closing"? on ...
by
RedOctober
[December 14, 2025, 04:52:18 pm]
Running External Tools
by
JuhaManninen
[December 14, 2025, 04:08:28 pm]
The start of yet another ...
by
TBMan
[December 14, 2025, 03:16:21 pm]
Need help with Runcommand...
by
marcov
[December 14, 2025, 12:46:25 pm]
Military Grade Directives
by
Thaddy
[December 14, 2025, 11:46:44 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Stringgrid with different width at different columns (Read 7504 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: 7421
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