Solved

really simple question

Posted on 2004-09-21
4
131 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now