Solved

really simple question

Posted on 2004-09-21
4
134 Views
Last Modified: 2010-04-05
why is the first column of a ListView not able to accept an alignment - even though the option is there in the columns editor, it just won't change and is always left justified.

I've looked through the delphi help files and didn't see anything mentioned.
0
Comment
Question by:gshep
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:BlackTigerX
ID: 12113301
I think this is a Window thing... the common workaround is to set the first column width to ZERO, then the next column will show up as the "first" one and you can align it =o)
0
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 100 total points
ID: 12114337
"Windows" thing... is a "feature" =o)...
just remember if you set the first column width to zero, when you add the items, you'll now have to add SubItems(0), to be able to see that in the first (visible) column
0
 

Author Comment

by:gshep
ID: 12124361
Thanks BlackTigerX, i was just interested in "why" - i find it a strange behavour.
0
 

Author Comment

by:gshep
ID: 12125018
a "Window's Feature" explains it all really - in real terms "Bug" or "Oops, we forgot to add in X to..."
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question