Solved

really simple question

Posted on 2004-09-21
4
130 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
Comment Utility
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
Comment Utility
"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
Comment Utility
Thanks BlackTigerX, i was just interested in "why" - i find it a strange behavour.
0
 

Author Comment

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

11 Experts available now in Live!

Get 1:1 Help Now