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
VB.net
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="reverson1" data-source="post: 55367" data-attributes="member: 20748"><p>Ok I've played around with this some more and I've managed to populate the subitems. But they don't display at all for some reason. </p><p></p><p>Can someone please help me figure out what I'm missing? </p><p></p><p>Here's the code I'm working with:</p><p></p><p>[code] Dim Men As MediaPortal.GUI.Library.GUIButtonControl</p><p> Dim Itm As MediaPortal.GUI.Library.GUIListItem</p><p> Dim x As Integer</p><p></p><p> Men = GetControl(24)</p><p> Men.Visible = True</p><p> MediaPortal.GUI.Library.GUIButtonControl.ClearControl(GetID, Men.GetID)</p><p></p><p> For x = 0 To 10</p><p></p><p> Itm = New MediaPortal.GUI.Library.GUIListItem("test" & x)</p><p> Men.AddSubItem(Itm)</p><p></p><p> Next</p><p> Itm = Men.GetSubItem(0)</p><p> MsgBox(Itm.Label)</p><p></p><p> Itm = Nothing</p><p> Men = Nothing[/code]</p><p></p><p>I've also tried using the Add method, but they are not selectable and appear to have to be manually positioned which I'd rather not do. It makes more sense to me for the positioning to be handled by the screen file.</p></blockquote><p></p>
[QUOTE="reverson1, post: 55367, member: 20748"] Ok I've played around with this some more and I've managed to populate the subitems. But they don't display at all for some reason. Can someone please help me figure out what I'm missing? Here's the code I'm working with: [code] Dim Men As MediaPortal.GUI.Library.GUIButtonControl Dim Itm As MediaPortal.GUI.Library.GUIListItem Dim x As Integer Men = GetControl(24) Men.Visible = True MediaPortal.GUI.Library.GUIButtonControl.ClearControl(GetID, Men.GetID) For x = 0 To 10 Itm = New MediaPortal.GUI.Library.GUIListItem("test" & x) Men.AddSubItem(Itm) Next Itm = Men.GetSubItem(0) MsgBox(Itm.Label) Itm = Nothing Men = Nothing[/code] I've also tried using the Add method, but they are not selectable and appear to have to be manually positioned which I'd rather not do. It makes more sense to me for the positioning to be handled by the screen file. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
VB.net
Contact us
RSS
Top
Bottom