A
Arto Viitanen
We have a program that lets the user to compare several files. The files
are shown in ListView, with dataitems on lines and each file on separate
column. Names of the files are used as column headers. Here comes the
problem: since there are several files and dataitems are quite short
(a number or short text), the columns are not very wide. But the file
names are quite long and are of something like:
directory\subdirectory\averyveryverylongname.txt
directory\subdirectory\averyveryverylongothername.txt
directory\subdirectory\averyveryverylongthird.txt
and since the ListView shows the name starting from left, each column
seems to have same the name.
I tried to put the columns right aligned, but still the writing starts
from the left.
I guess the ideal case is to show the names like
dir...longname.txt
dir...thername.txt
dir...hirdname.txt
How can I make that?
If not, how to make tooltips with ListView columns (I found some code
with Google, but it assumed some Windows code I was not familiar with)?
are shown in ListView, with dataitems on lines and each file on separate
column. Names of the files are used as column headers. Here comes the
problem: since there are several files and dataitems are quite short
(a number or short text), the columns are not very wide. But the file
names are quite long and are of something like:
directory\subdirectory\averyveryverylongname.txt
directory\subdirectory\averyveryverylongothername.txt
directory\subdirectory\averyveryverylongthird.txt
and since the ListView shows the name starting from left, each column
seems to have same the name.
I tried to put the columns right aligned, but still the writing starts
from the left.
I guess the ideal case is to show the names like
dir...longname.txt
dir...thername.txt
dir...hirdname.txt
How can I make that?
If not, how to make tooltips with ListView columns (I found some code
with Google, but it assumed some Windows code I was not familiar with)?