[Solved] Drawing object properties
-
- Posts: 6
- Joined: Wed Nov 02, 2016 1:20 am
[Solved] Drawing object properties
Hi, I am trying to make rectangle shape transparent with a macro and also insert text from a variable and then make the text 50% transparent. I tried to record this but it didn't work. Any help would be appreciated. Thank you!!
Last edited by johnnyideal on Wed Mar 01, 2017 4:03 pm, edited 1 time in total.
OpenOffice 4.1.2 on Windows 7
Re: Drawing object properties
The macrorecorder has a limited capability.Hi, I am trying to make rectangle shape transparent with a macro and also insert text from a variable and then make the text 50% transparent. I tried to record this but it didn't work. Any help would be appreciated. Thank you!!
You need study and use the StarBasic (or other supported programming language) AND the functions of the Application Programming Interface (API).
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.
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.
Re: Drawing object properties
I made a Draw document with one simple shape and this code changes the transparency
That does not answer how to pick out the shape in your case. Also, I do not see a way to make the text transparent, though I did not search for long.
Code: Select all
oDrawPages = ThisComponent.getDrawPages()
oDP = oDrawPages.getByIndex(0)
oShape = oDP.getByIndex(0)
oShape.setPropertyValue("FillTransparence", 50)
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.