Textcolor of tree control in user dialog?

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Jimmy2768
Posts: 19
Joined: Sat Jan 22, 2022 2:15 pm

Textcolor of tree control in user dialog?

Post by Jimmy2768 »

Hi

Is there any way to set the textcolor of tree control in user dialog from macros using macros?

Thanks
Open Office 4.1.9
MX Linux 19.4 - Windows 7
User avatar
Zizi64
Volunteer
Posts: 11362
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Textcolor of tree control in user dialog?

Post by Zizi64 »

You can check the existing properties and methods of the programming objects by an object inspection tool like the XrayTool or the MRI.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
robleyd
Moderator
Posts: 5087
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Textcolor of tree control in user dialog?

Post by robleyd »

Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Jimmy2768
Posts: 19
Joined: Sat Jan 22, 2022 2:15 pm

Re: Textcolor of tree control in user dialog?

Post by Jimmy2768 »

Thanks guys
I have never tried one of these tools. :D
Open Office 4.1.9
MX Linux 19.4 - Windows 7
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Textcolor of tree control in user dialog?

Post by Villeroy »

Jimmy2768 wrote:Thanks guys
I have never tried one of these tools. :D
In this case it tells you that neither the tree control nor its model (what you would see in the designer) supports any font colors. It tells you anything about each and every UNO object while recording macro code in the background.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
JeJe
Volunteer
Posts: 2785
Joined: Wed Mar 09, 2016 2:40 pm

Re: Textcolor of tree control in user dialog?

Post by JeJe »

I can't see any way either. The only way you could have that might be to write your own control with a non-binary tree data structure and some labels to represent it as a control.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Jimmy2768
Posts: 19
Joined: Sat Jan 22, 2022 2:15 pm

Re: Textcolor of tree control in user dialog?

Post by Jimmy2768 »

Thank you guys

The probles is that the color of text doesn't remain the same but changes according the theme of operating system. So, If i set the background color as white and run the dialog while is active dark theme then the color of text becomes white too. If i set the backgroune as black and run the dialoge while is active a non dark color then the color of text becomes black too.

This way Background color of tree control becames useless.
Open Office 4.1.9
MX Linux 19.4 - Windows 7
Post Reply