|
-
Oct 30th, 2001, 02:15 PM
#1
Thread Starter
Addicted Member
Icon alignment in listview header...
(I posted this in the general discussion group...with no avail...)
Unless somebody posted an answer to this question in the past few minutes, I should be safe...
Does anyone know how to change the alignment for a column header icon for the listview control?
For example, in windows explorer, in the NAME column, (or any column really), the sorting icon appears after the text in the header. This is exactly how I need it to work. But my icon is appearing BEFORE the text, causing my left-aligned text to be scewed. (see attached picture)
I don't see any direct way to change this, but I know it can be done. If anyone's got something for me....I'll give it a try.
Thanks so much!
If you can think it....you can code it....
-
Oct 31st, 2001, 11:06 AM
#2
Lively Member
One thought that comes to mind is to actually include the text of the column header in the image. This *would* increase the number of images to manage (three per column: unsorted, asc, desc), and complicates the coding a bit...but maybe it would work?
-
Oct 31st, 2001, 12:46 PM
#3
Thread Starter
Addicted Member
well....
It seems like a good idea, but I don't think icons can be that size? (that long). And if not, then I'd have to manage jpeg's or god forbid the filesize beast, Mr. BMP?!? Yikes!
There's got to be a way to do this, it seems so simple. If anyone out there has some "Explorer-like" app where you also used an icon in the header, please send it.....this is the last detail in a prog. I'm writing. Once complete, maybe I'll post it up here for you fine people to beta-test...... 
::Sibby::
If you can think it....you can code it....
-
Oct 31st, 2001, 05:54 PM
#4
Thread Starter
Addicted Member
Got It!
With some intensive internet searching I found the answer to my solution. Check out the following link:
http://www.mvps.org/vbnet/index.html...eaderimage.htm
With some tweaking of your own you should be able to get it to work for you....I did!
::Sibby::
If you can think it....you can code it....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|