[Libreoffice] Icons in Specialized class ListBox
Eike Rathke
erack at redhat.com
Wed Jan 18 11:45:33 PST 2012
Hi Julien,
On Wednesday, 2012-01-18 16:17:32 +0100, Julien Levesy wrote:
> I'm working on the file picker dialog. I would like to add a list of places
> as those we can see on most common file pickers (bookmarks on the left of
> the dialog).
>
> In order to display these places, I use specialization of the SvtListBox
> component.
Don't know which SvtListBox you are referring, there is no such class.
> I would like to add icons for each item in the list. Do you know
> what the best way to display icons in a listbox is ?
There's the vcl ListBox (maybe that's the one you're already using?)
that has an InsertEntry() method that takes an Image parameter. You can
see it in action under Tools->Options->LanguageSettings->Languages
"Default languages for documents" where it is used to display the ABC
check marks for language support.
Eike
--
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120118/dbea5a65/attachment.pgp>
More information about the LibreOffice
mailing list