On to my next issue…
My script has a WindowXML class. The xml file defines a List control with an id of 50 e.g.
Code:
<control type="list" id="50">
The control is hidden by default but can have its visibility toggled by pressing a key on the remote (which sets a window property).
My issue is that I can’t get the control to focus when it becomes visible.
I’ve tried using:
Code:
self.setFocusId(50)
and
Code:
listbox = self.getControl(50)
self.setControl(listbox)
and neither is working (although ‘listbox’ is correctly set as the ControlList object).
I’ve tried debugging by printing the ID of the focussed control after the above lines and it confirms that the control does not have focus.
Am I doing something stupid?