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
MediaPortal 1 Plugins
GUI List Control
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="JestriK" data-source="post: 70447" data-attributes="member: 23929"><p>Hello,</p><p></p><p>I am currently developing my first plugin for MP (a PDF ebook reader). I have read the "how to develop your first plugin" but that doesn't seem to help with this. I am trying to add a list control to my GUI which will load all the names of the ebooks into it - a similar layout to the my music plugin.</p><p></p><p>At the moment I am just trying to add an item to the list but it just doesn't show!</p><p></p><p>I'm initialising the list control with the following -</p><p>[code][SkinControlAttribute(21)]</p><p> protected GUIListControl lstEbooks = null;[/code]</p><p></p><p>Then trying to add an item to it with the following -</p><p>[code]lstEbooks.Add(new GUIListItem("A new item!"));[/code]</p><p></p><p>This the part in my XML file that declares the facade view (borrowed this from the My Music plugin) -</p><p>[code] <control></p><p> <type>group</type></p><p> <description>group element</description></p><p> <animation>FlyInFromTop</animation></p><p> <posX>120</posX></p><p> <posY>97</posY></p><p> <width>50</width></p><p> <height>60</height></p><p> <control></p><p> <description>composite control consisting of a list control and a thumbnail panel</description></p><p> <type>facadeview</type></p><p> <id>20</id></p><p> <control></p><p> <description>listcontrol</description></p><p> <type>listcontrol</type></p><p> <id>21</id></p><p> <width>50</width></p><p> <height>60</height></p><p> <onleft>2</onleft></p><p> <onright>51</onright></p><p> <onup>2</onup></p><p> <ondown>2</ondown></p><p> <textcolor>FFFFFFFF</textcolor></p><p> </control></p><p> <control></p><p> <description>Thumbnail Panel</description></p><p> <type>thumbnailpanel</type></p><p> <id>22</id></p><p> <onleft>2</onleft></p><p> <onright>52</onright></p><p> <onup>2</onup></p><p> <ondown>2</ondown></p><p> </control></p><p> </control>[/code]</p><p></p><p>Any help would be greatly appreciated!</p><p></p><p>Cheers,</p><p>JestriK</p></blockquote><p></p>
[QUOTE="JestriK, post: 70447, member: 23929"] Hello, I am currently developing my first plugin for MP (a PDF ebook reader). I have read the "how to develop your first plugin" but that doesn't seem to help with this. I am trying to add a list control to my GUI which will load all the names of the ebooks into it - a similar layout to the my music plugin. At the moment I am just trying to add an item to the list but it just doesn't show! I'm initialising the list control with the following - [code][SkinControlAttribute(21)] protected GUIListControl lstEbooks = null;[/code] Then trying to add an item to it with the following - [code]lstEbooks.Add(new GUIListItem("A new item!"));[/code] This the part in my XML file that declares the facade view (borrowed this from the My Music plugin) - [code] <control> <type>group</type> <description>group element</description> <animation>FlyInFromTop</animation> <posX>120</posX> <posY>97</posY> <width>50</width> <height>60</height> <control> <description>composite control consisting of a list control and a thumbnail panel</description> <type>facadeview</type> <id>20</id> <control> <description>listcontrol</description> <type>listcontrol</type> <id>21</id> <width>50</width> <height>60</height> <onleft>2</onleft> <onright>51</onright> <onup>2</onup> <ondown>2</ondown> <textcolor>FFFFFFFF</textcolor> </control> <control> <description>Thumbnail Panel</description> <type>thumbnailpanel</type> <id>22</id> <onleft>2</onleft> <onright>52</onright> <onup>2</onup> <ondown>2</ondown> </control> </control>[/code] Any help would be greatly appreciated! Cheers, JestriK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
GUI List Control
Contact us
RSS
Top
Bottom