Dear Oddball,
This might help : (from MSDN)
Typically, Windows handles the task of drawing the items to display in the
ListBox. You can use the DrawMode property and handle the MeasureItem and
DrawItem events to provide the ability to override the automatic drawing
that Windows provides and draw the items yourself. You can use owner-drawn
ListBox controls to display variable-height items, images, or a different
color or font for the text of each item in the list. The HorizontalExtent
property, GetItemHeight, and GetItemRectangle property also provide
assistance for drawing your own items.
Possibly better would be a Listview in Detail mode. I've been using a
control that 'merges' a tree view and a list view
(
http://www.codeproject.com/cs/miscct...elistview.asp). That could be a
useful starting point for your needs, though I should warn you that I had to
make quite a few minor fixes before it behaved as I wanted; I hope to post
them back to the site at some point. That uses the Listview to draw the text
and some images, but then draws additional stuff itself, using the
SetIndentation to make space (note - Indentation is based on image width, so
no ImageList, no indentation). It also uses BeforeLabelEdit and
AfterLabelEdit to change the editing Textbox to a Combobox, or similar,
during editing.
Failing that, could you create a scrollable control and handle other
drawing, user input, etc. yourself?
HTH - feels like a single post from me is enough to kill a thread, so sorry
if that happens!!!! ;o)
Now, if I could just get an answer to my scrolling problem ('Scrolling bug
in MDI client windows') I'd be a happy guy...
James