Question:
How can I change a pen’s visibility via screen objects?
Solution:
To enable or disable pen’s visibility, follow these procedures:
- Add a CheckBox to the screen.
- In this CheckBox, create a script at Change() event.
- With the AppBrowser, retrieve the pen’s Visible property.
- Complete the script line by attributting the CheckBox’s Value. The script will look like this:
set pens = Screen.Item("E3ChartName").Pens pens.Item("PenName").Visible = Value