user1175743
user1175743

Reputation:

Listbox Component with advanced formatting options?

I am looking for a listbox style component that offers advanced text formatting options.

I know you can ownerdraw regular listboxes using the OnDrawItem procedure, but for the requirements I need I think it would be better to use a control that may already offer what I am looking for.

Look at this sample screenshot:

enter image description here

Word Styling - Allow individual characters/words to be styled differently.

Text Links - certain items entered into the listbox could be recognised as a link (not necessarily a url link though). In this example brown fox is marked as link, when the mouse moves over the brown fox text the font becomes underlined. Selecting this could do anything such as show a message, open a form etc.

Note, when a list item is selected the font styles should remain the same. Additionally if the listbox could support images (especially several images in a row) that would be a bonus.

I was thinking a HTML listbox or similar could be just what I need. That would allow inputting the items into the listbox like as code with tags for example.

Could anyone recommend a component that offers this type of capabilities?

Thanks.

Upvotes: 4

Views: 1561

Answers (1)

Shambhala
Shambhala

Reputation: 1169

The THTMListbox by TMS Software can do all of this. It can support images and even animated gifs.

It is not free though and is actually part of a bundle (HTML Controls Pack). I think it is well worth looking at though and the support is second to none + you receive full source code.

Upvotes: 6

Related Questions