Description: The selected item in a listbox is allways shown with the color blue. It should be possible to define other highlight colors. Steps to Reproduce: Attached is a document, where the macro function SetHighlightColor demontrates how I would expect a working code looks like. Pressing the button "Demonstrate HighlightColor" will show an error dialog, as the attribute is not implemented yet. Actual Results: Error dialog. Expected Results: Listbox is set with a different highlight (selection) color. Reproducible: Always User Profile Reset: No Additional Info: Version: 6.4.8.0.0+ (x64) Build-ID: 2277 CPU-Threads: 12; BS: Windows 10.0 Build 19043; UI-Render: Standard; VCL: win; Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE Calc: CL
Created attachment 181049 [details] Demonstates how the highlight color should be set
Self confirming according to https://wiki.documentfoundation.org/QA/Guidelines_for_public_and_private_sector_deployments. Issue has originally been reported by another user in our internal issue tracker.
Hi Ilhan, it is interesting to come across this enhancement request. I think this would give macro/extension developers more flexibility when developing UI elements in dialogs. Controls in Basic dialogs are very simple in terms of available properties. Just yesterday I was trying to change some text properties in the items of a list box (f.i. make some of the items bold and others not). However, that is not possible. Anyways, +1 for this idea. As for your patch, wouldn't you need to update the IDL files? for instance, the Listbox Model file is in: https://opengrok.libreoffice.org/xref/core/offapi/com/sun/star/awt/UnoControlListBoxModel.idl?r=5687eba4
Hi Rafael, thank you for your comment. I needed this for an extension. Yes, it seems that I've also to update the according idl files.
Ilhan Yesil committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/ba164651bbdbde1b8a4ae3495b845ebc13b01bad tdf#149797 Change highlight background color in some controls It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Seems like this can be changed to fixed.