Reply to thread

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


Top Bottom