Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CENTER icon in listsubitem listview

Status
Not open for further replies.

sal21

Programmer
Apr 26, 2004
425
IT
I isnert icon with:

....
.ListItems(RM).SubItems(D) = ""
.ListItems(RM).ListSubItems(D).ReportIcon = 1
....

the icon is allined to the left, possible to align to the center in subitem?
 
Not with the standard VB6 ListView, I'm afraid

I refer you to previous answers concerning making the VB6 ListView control do things it is not designed to do: OwnerDraw. And you have been provided links and examples of doing that.
 
hi strongm,
but is very strange....
i think.
insert a wingding char in listsubitem, in bold and read color
I need in listsubitem a simple and little bullet(Dot) in red.
in this case the column is just set to Center, wath you think about?
 
Setting column alignment (and note that you cannot set an y alignment of the first column except left-align) only affects text - so if you have a wingding character then sure you would superficially appear to have a solution. However, you can only globally set the font for a listview (again, unless you go to ownerdraws)...
 
Yes, as previously mentioned in your thread222-1803733, and thread222-1809066. And thoroughly demonstrated with working code in your thread222-1803482.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top