Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
Text alignment in grid of TStringGrid
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
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
error release when memo.s...
by
dseligo
[
Today
at 05:40:29 am]
Is there a function calle...
by
Bogen85
[
Today
at 05:33:40 am]
Controls inside the form ...
by
Ecsa
[
Today
at 04:02:37 am]
Theo's Searchbar plugin f...
by
Curt Carpenter
[
Today
at 03:54:33 am]
Search panel plugin for t...
by
Curt Carpenter
[
Today
at 03:51:49 am]
Question about GTK2 text ...
by
tomitomy
[
Today
at 02:25:17 am]
lazreport load image from...
by
dseligo
[
Today
at 01:41:08 am]
pls advice for good style...
by
dseligo
[
Today
at 01:19:35 am]
Best way to parse file.
by
Kays
[
Today
at 12:56:50 am]
capture apl_exec stdout
by
440bx
[
Today
at 12:28:28 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Text alignment in grid of TStringGrid (Read 10739 times)
asdf
Sr. Member
Posts: 310
Text alignment in grid of TStringGrid
«
on:
December 05, 2010, 05:23:51 pm »
Now in the default, it looks like 'Top'.
How could we set it to be like 'Bottom' ?
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
ivan17
Full Member
Posts: 173
Re: Text alignment in grid of TStringGrid
«
Reply #1 on:
December 06, 2010, 09:40:52 pm »
i'd say you need to draw cell contents yourself.
not the answer you wanted, i know, but it's what you need.
Logged
jesusr
Sr. Member
Posts: 483
Re: Text alignment in grid of TStringGrid
«
Reply #2 on:
December 07, 2010, 06:18:25 pm »
take a look at this sample, it's using OnPrepareCanvas StringGrid Event:
http://wiki.lazarus.freepascal.org/Grids_Reference_Page#Example:_How_to_align_column_text_in_StringGrids
The change it needs to align to bottom is instead of using Alignment textstyle property use Layout property, valid Layout values are tlTop tlBottom and tlCenter. tlCenter is default.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
Text alignment in grid of TStringGrid
TinyPortal
© 2005-2018