As the title says, I don’t seem to get an event fired when the Enabled property on my Dropdown component is changed. The Enabled property is bound to something.
I am trying to set the selectedStringValue to -1 so that it will display the “No Selection Label” when the component is disabled.
This is my code on the propertyChange event script:
if event.propertyName == "componentEnabled": if event.newValue == 0: event.source.selectedStringValue = "-1" event.source.parent.getComponent('Label 7').text = "Disabled" else: event.source.parent.getComponent('Label 7').text = "Enabled" # end if # end if
The label text change is just for debugging, the label text isnt changing regardless of what the newValue is so it seems to me the event just isnt firing. Why might this be?
Are propertyChange event scripts fired before the bindings are or something?
Or can the scripts not work when a component is enabled… In which case i’d still expect it to change my label when the component is Enabled again.