Page 1 of 1
PmfTree textcolor problem
Posted:
Tue 09. Jul 2024 12:50:39
by roman66
Hi,
TextColor - property of the PmfTreeItem object.
.TextColor = "inherit"; - not work for me. Please check.
Re: PmfTree textcolor problem
Posted:
Mon 05. Aug 2024 9:07:54
by Ondřej Kovařík
Hello,
our testing of the PmfTreeItem object and the TextColor property did not reveal any error. I would like to ask you for more information:
- PROMOTIC system version
- where exactly and under what conditions the error occurs
- whether it is a local runtime or web
It would be very helpful to add a screenshot or a simple example in which the error occurs.
Re: PmfTree textcolor problem
Posted:
Thu 08. Aug 2024 11:03:02
by roman66
Hi,
- PS ver. 9.028.0
- local runtime and web
- maybe i understand wrong the help documentation..
Re: PmfTree textcolor problem
Posted:
Fri 09. Aug 2024 8:58:37
by Ondřej Kovařík
Hello,
Thank you for the screenshot with the example.
The TextColor property value is inherited only in two levels: PmfTree.TextColor -> PmfTreeItem.TextColor. So the parent object mentioned in the documentation is the PmfTree object and not the parent tree item (PmfTreeItem object). So it is possible to set the text color for all tree items in one place in the PmfTree.TextColor property. Then the different text color must be set individually for each item in the PmfTreeItem.TextColor property. The text color is not inherited from the parent tree item.
We will improve the description in the PROMOTIC documentation to make this fact more obvious.
Re: PmfTree textcolor problem
Posted:
Fri 09. Aug 2024 10:51:06
by roman66
ok, its clear now.
Thank you.