- Jan 23, 2008
- 1,166
- 0
- 76
We have a ListView control which displays thumbnails and filenames from images and videos. The problem is that there's no good visual cue that distinguishes between the images and the videos; you get a ton of thumbnails, and the extensions are there, but don't "pop out enough."
Things we've tried which have been unsatisfactory:
Highlighting or changing the text or background color of videos (makes them look selected, is confusing).
Changing the text of the ListViewItems to just "Image" or "Video" (still doesn't "pop out enough").
Bolding the text under a video's thumbnail (unclear).
The solution we decided on at yesterday's meeting was to put a small icon (Webdings character 0xB7) in the text of the ListViewItem. The problem with this is that there doesn't seem to be a way to use two fonts for any control's text.
To resolve this, my first thought was to treat the text as a label, since labels support displaying images, and use a bitmap of the Webding character followed by the text. That would work if the text was a label, but it's not.
Right now, I'm at the point of either writing a custom control, or setting the ListView's OwnerDraw as "true" and making changes to the drawing myself, manually drawing the Webding where it needs to be and offsetting the text appropriately. The problem with this approach is that it seems fragile and easy to do wrong (earlier in the design, the PM specifically said we don't want to play with painting the control).
So, experienced .NET developers, how would you do this? Unless I'm missing something, these are mutually exclusive requirements. Not cool.
Cliffs
I need a good way to display a visual cue to distinguish between thumbnails of images and thumbnails of videos in a single ListView control. The visual cue must "pop" and be noticeable, but must not confuse the user. None of my solutions so far are satisfactory.
Things we've tried which have been unsatisfactory:
Highlighting or changing the text or background color of videos (makes them look selected, is confusing).
Changing the text of the ListViewItems to just "Image" or "Video" (still doesn't "pop out enough").
Bolding the text under a video's thumbnail (unclear).
The solution we decided on at yesterday's meeting was to put a small icon (Webdings character 0xB7) in the text of the ListViewItem. The problem with this is that there doesn't seem to be a way to use two fonts for any control's text.
To resolve this, my first thought was to treat the text as a label, since labels support displaying images, and use a bitmap of the Webding character followed by the text. That would work if the text was a label, but it's not.
Right now, I'm at the point of either writing a custom control, or setting the ListView's OwnerDraw as "true" and making changes to the drawing myself, manually drawing the Webding where it needs to be and offsetting the text appropriately. The problem with this approach is that it seems fragile and easy to do wrong (earlier in the design, the PM specifically said we don't want to play with painting the control).
So, experienced .NET developers, how would you do this? Unless I'm missing something, these are mutually exclusive requirements. Not cool.
Cliffs
I need a good way to display a visual cue to distinguish between thumbnails of images and thumbnails of videos in a single ListView control. The visual cue must "pop" and be noticeable, but must not confuse the user. None of my solutions so far are satisfactory.