home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Can not get the Listcontrol working
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="davemj9876" data-source="post: 773053" data-attributes="member: 114698"><p>Hi,</p><p> I have been working on my on plug in. and I have been populating a listcontol with the following code</p><p> </p><p> [CODE] private void LoadAllPlaylists()</p><p> {</p><p> if ((int)GUIWindowManager.ActiveWindow == GetID)</p><p> {</p><p> int j = 0;</p><p> GUIControl.ClearControl(GetID, (int)Controls.CONTROL_PLAYLISTS);</p><p> foreach (IITPlaylist pl in app.LibrarySource.Playlists)</p><p> {</p><p> j++;</p><p> GUIListItem item = new GUIListItem(pl.Name);</p><p> item.Label = pl.Name;</p><p> item.IsFolder = false;</p><p> GUIControl.AddListItemControl(GetID, (int)Controls.CONTROL_PLAYLISTS, item);</p><p> }</p><p> GUIPropertyManager.SetProperty("#itemcount", j.ToString());</p><p> GUIControl.SetControlLabel(GetID, (int)Controls.CONTROL_PLAYLISTS, j.ToString());</p><p></p><p> }</p><p> }</p><p></p><p>[/CODE]</p><p></p><p>The XML skin for the control is very simple:</p><p></p><p>[CODE]</p><p> <control></p><p> <id>4</id></p><p> <description>Play List Information</description></p><p> <type>listcontrol</type></p><p> <scrollOffset>2</</scrollOffset></p><p> </control></p><p> [/CODE]</p><p></p><p>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). </p><p></p><p>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.</p><p></p><p>Thanks for any help</p><p></p><p>Cheers</p><p></p><p>David</p></blockquote><p></p>
[QUOTE="davemj9876, post: 773053, member: 114698"] Hi, 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()); } } [/CODE] 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> [/CODE] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Can not get the Listcontrol working
Contact us
RSS
Top
Bottom