how do I scroll list
#1
All,

I am developing a plugin that shows data. One of the data fields is a list of items. The area of the control is limited and I would like the lit to have a scroll. How do I do that.

my current code is:

self.myTextArea = xbmcgui.ControlList(0, 0, 150, 150)
self.addControl(self.myTextArea)
self.myTextArea.addItem("AAAA")
self.myTextArea.addItem("BBBB")
self.myTextArea.addItem("CCCC")
self.myTextArea.addItem("DDDD")
self.myTextArea.addItem("EEEE")
self.myTextArea.addItem("FFFF")

(to view "EEEE" and "FFFF", I need a scroll up/down)

Thx,
Yohay
Reply
#2
(2015-06-30, 08:45)ykamchi Wrote: I am developing a plugin that shows data.

is it really a plugin? judging by the code you're writing a script instead.
plugins can't create their own skin stuff.

the easiest way would be to use the WindowXML class and create all skin parts as an xml file.
for autoscroll you can then simply add <autoscroll>true</autoscroll> to the list control.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
how do I scroll list0