Hi , I want to control component layer by script , such as Easy Chart , Template , Alarm Status Table …
How can I do ? not by button of “Move to front”, “Move to back”
This script is on a button.
component = event.source.parent.getComponent('Easy Chart')
rootContainer = event.source.parent
currentZOrder = rootContainer.getComponentZOrder(component)
try:
#Change the minus to a plus to move the Z Order/Index of the Object/Component to a higher 'layer'
rootContainer.setComponentZOrder(component,currentZOrder - 1)
component.requestFocusInWindow()
except:
pass
Thanks! It’s OK NOW.