6/13/2016 7:20 AM | |
Joined: 10/3/2010 Last visit: 7/31/2024 Posts: 1560 Rating:
|
To change for example the BackColor-property with VBA to a certain ColorIndex the following works: Dim objMember As HMIObject objMember.Properties("BackColor") = (-2147483648# + iColorIndex) but how to add the transparency level to it by VBA? I only want to change the transparency level of the color, not the one from the object itself. |
B r g d s , |
|
6/13/2016 10:50 AM | |
Joined: 10/3/2010 Last visit: 7/31/2024 Posts: 1560 Rating:
|
I've seen this before and it doesn't help me for what I need. objMember.Properties("BackColor") = (-2147483648# + iColorIndex) works for each ColorIndex that I have made before. I just want to add the transparency to it but just adding +(2^24 * transparency) |
B r g d s , |
|
6/28/2016 3:27 AM | |
Posts: 291 Rating:
|
Dear SteBo, It works fine for VBA , too! Please refer to the attachment again! :) Best regards, Komi |
6/28/2016 12:44 PM | |
Joined: 10/3/2010 Last visit: 7/31/2024 Posts: 1560 Rating:
|
Hey Komi, doesn't work for me this way: item.BackColor = (80 + 1) * 256 ^ 3 + (-2147483648# + 35) '35 = ColorIndex ?
|
Last edited by: SteBo at: 6/28/2016 12:55:14 PMLast edited by: SteBo at: 6/28/2016 1:56:22 PMB r g d s , |
|
Follow us on