Hi again,
I've looked into the Python API now for a little bit, to get the hang how stuff works there, and also looked into some existing plugins.
In the ditatopicref.py I've seen a ListViewItem being constructed, by building a DOM-Tree of the element and then appending it to the parent.
I'll provide a little code snippet.
Code:
props = PropertyNode("properties")
props.makeDescendant("is-open").setBool(1)
[other properties being set]
selfItem = doc.makeItem("ListViewItem", props)
parentItem.appendChild(selfItem)
The ListView item itself was specified in the according .spd (and was the parentItem).
So, my question is ... is this the right way to go? It seems to me no different than what I've been trying to do with the .spd itself, but I didn't find any other way of building UI items until now.
And if it isn't the approach you've been talking about, some hints to where I could find a good example or something like that would be very welcome.
Thanks in advance!