I wouldn’t attempt this onInitalised
, can you do it after EventConstruct
instead? Doubt the button is ready before that. What’s happening is probably Construct overriding whatever you’re trying to set up earlier. Also, no reason for DoOnce
- Init runs only once - that’s the point.
Some things work great onInitalised
- like Event Dispatcher binding since this has nothing to do with laying out widgets.