2019-03-14, 15:55
It has come to my attention that "=11.0ptadding listitems to the built-in container will only work for windows and no longer for dialogs" under V18.
But I'm also finding out that I cannot set focus on a list control in a WindowXmlDialog.
I don't get an error but the focus never changes to the list control.
When I use web-pdb to debug my addon and run the function self.getFocusId(), the result comes back as zero instead of the ID of the list control.
It had been suggested that I do the following:
That suggestion does not work and in fact gives me the following error:
So my question is, what procedure should I use under V18, to set focus on my list control?
Under V17.6, I have no problem setting focus on the list control.
But I'm also finding out that I cannot set focus on a list control in a WindowXmlDialog.
I don't get an error but the focus never changes to the list control.
When I use web-pdb to debug my addon and run the function self.getFocusId(), the result comes back as zero instead of the ID of the list control.
It had been suggested that I do the following:
Python:
self.list = self.getControl(ListControl_ID)
self.list.setFocusId(ListControl_ID)
That suggestion does not work and in fact gives me the following error:
Quote:AttributeError: 'xbmcgui.ControlList' object has no attribute 'setFocusId'
So my question is, what procedure should I use under V18, to set focus on my list control?
Under V17.6, I have no problem setting focus on the list control.