Solved

really simple question

Posted on 2004-09-21
4
135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

759 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