Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
Text alignment in grid of TStringGrid
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
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: This kind of prope...
by
maicounir
[
Today
at 07:26:49 pm]
TChart: +32% Processor lo...
by
ccrause
[
Today
at 07:25:23 pm]
CompareText improvement
by
Stefan Glienke
[
Today
at 05:07:58 pm]
An ASCII logo for Pascal ...
by
Fred vS
[
Today
at 03:34:59 pm]
Setup landmap - databse
by
WimVan
[
Today
at 03:31:15 pm]
Improvement of packages/f...
by
lagprogramming
[
Today
at 03:12:57 pm]
[SOLVED] SysTraIcon event...
by
SWM1
[
Today
at 02:40:47 pm]
pdfium.dll loadfromfile f...
by
domasz
[
Today
at 02:14:41 pm]
[SOLVED] Timer
by
Pe3s
[
Today
at 12:36:33 pm]
QT5 PageControl Tab sizes
by
zeljko
[
Today
at 12:07:55 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Text alignment in grid of TStringGrid (Read 10776 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