Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I searched for a while in the api guide and in this qlikview community, but found no answer.
Is there a possibility to create a textfeld with a transparent background?
I have problems to find the macro code for setting the background to transparent.
Thanks for your help.
You may try this sample code. I hope this helps.
Public Sub SetOpacity
set mytext = ActiveDocument.ActiveSheet.CreateTextObject
prop = mytext.GetProperties
prop.Layout.Text.v = mytext.GetObjectId
prop.Layout.BkgAlpha = 0
mytext.SetProperties prop
End Sub
Nobody any idea?
Hi,
In the text box,when you right click in it you will get 'Properties'.In that there is one 'General' tab,There,in right side down you can find the
'Transparency' from0% to 100%.as per your you can select that one
Thanks & Regards
Jai
Of course i can select it manually, but how to set it via macro?
You may try this sample code. I hope this helps.
Public Sub SetOpacity
set mytext = ActiveDocument.ActiveSheet.CreateTextObject
prop = mytext.GetProperties
prop.Layout.Text.v = mytext.GetObjectId
prop.Layout.BkgAlpha = 0
mytext.SetProperties prop
End Sub
pinogs: Thats was what i searched for. Thank you so much.
The answer is: prop.Layout.BkgAlpha = 0 (0=100% Transparency).