Looks like cui/source/dialogs/thesdlg.cxx does it via set_text_emphasis(), which ultimately draws the text for non-native controls in SvLBoxString::Paint() per aFont.SetWeight(WEIGHT_BOLD); Weird "convenience" function...

The more common approach is to connect a custom renderer per connect_custom_render(). You find several prototypes in the sources.

On 08.11.26 5:51 PM, Laurent Balland wrote:
Hello,

It seems it is possible to format text as bold in a weld::TreeView (like for the thesaurus dialog) but not as italic. Is there any reason for this limitation? Is there another object I should use to get a select-able list with some row in italic?

I try to modify Sheets selection dialog [1] to emphasize hidden sheets. But formatting as bold is not a good idea for a hidden sheet; I would prefer italic.

Thanks for your help.

Best regards,

Laurent

[1] https://bugs.documentfoundation.org/show_bug.cgi?id=174242

--
Dr. Heiko Tietze, UX-Architect
Tel: +49 30 5557992-63 | Mail: [email protected]
The Document Foundation, Winterfeldtstraße 52, 10781 Berlin, DE
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
Legal details: https://www.documentfoundation.org/imprint

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to