- August 1, 2011
- 9
- 0
- Home Country
-
New Zealand
Hi,
I have been working on my on plug in. and I have been populating a listcontol with the following code
The XML skin for the control is very simple:
When I select my plugin, a list of playlists does appear on the screen, which is great but the list in unselectable. The complete lists highlights, but I am not getting individual items to select (I hope that makes sense).
Can any one point me in the direction of what I might be doing wrong (or even to a very simple working example). I have looked at various plugins and I can not see what I am doing different to them.
Thanks for any help
Cheers
David
I have been working on my on plug in. and I have been populating a listcontol with the following code
Code:
private void LoadAllPlaylists()
{
if ((int)GUIWindowManager.ActiveWindow == GetID)
{
int j = 0;
GUIControl.ClearControl(GetID, (int)Controls.CONTROL_PLAYLISTS);
foreach (IITPlaylist pl in app.LibrarySource.Playlists)
{
j++;
GUIListItem item = new GUIListItem(pl.Name);
item.Label = pl.Name;
item.IsFolder = false;
GUIControl.AddListItemControl(GetID, (int)Controls.CONTROL_PLAYLISTS, item);
}
GUIPropertyManager.SetProperty("#itemcount", j.ToString());
GUIControl.SetControlLabel(GetID, (int)Controls.CONTROL_PLAYLISTS, j.ToString());
}
}
The XML skin for the control is very simple:
Code:
<control>
<id>4</id>
<description>Play List Information</description>
<type>listcontrol</type>
<scrollOffset>2</</scrollOffset>
</control>
When I select my plugin, a list of playlists does appear on the screen, which is great but the list in unselectable. The complete lists highlights, but I am not getting individual items to select (I hope that makes sense).
Can any one point me in the direction of what I might be doing wrong (or even to a very simple working example). I have looked at various plugins and I can not see what I am doing different to them.
Thanks for any help
Cheers
David