Page 1 of 1

Identifying text color of a tree item

Posted: Thu Sep 17, 2015 5:17 am
by rka
Servus,

I encountered a new problem in our application. We need to validate the text color of a tree item, which I added as a snapshot here.
I haven't found any color attributes on the tree item itself, so I tried to add the tree to the GDI capture list which worked fine so far.
So now I have a rawtext object which has the TextColor attribute. The problem is that although the text color is green, the TextColor attribute is #000000 for any text color I saw inside the tree items.

What can I do here to get the text color of the tree item?


Thank you in advance for your answer,
best regards,
Rafael

Re: Identifying text color of a tree item

Posted: Fri Sep 18, 2015 6:24 am
by rka
Problem seems to be solved:

Although the RawText Object seems to have the wrong parameters, much further down in the list of objects under the tree object there is a fresh created RawText object with the same layout parameters but this one has the correct RawText parameters, thus the correct TextColor parameter :)

Still wondering why now there are two of them, but anyway, it's working now.