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!)
vb.net & GUIFacadeControl problem
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="Messiahs" data-source="post: 643241" data-attributes="member: 85605"><p>Hello,</p><p></p><p>I'm currently developing my first plugin and I'm having some very basic problems with the GUIFacadeControl.</p><p></p><p>I'm trying to get the current selected Item in a list (like current selected item in a playlist).</p><p></p><p>[CODE]Imports MediaPortal.GUI.Library</p><p></p><p>Public Class cGUIHandler</p><p> Inherits GUIFacadeControl</p><p> <SkinControlAttribute(50)> Public facadeView As GUIFacadeControl = Nothing</p><p></p><p> Sub New()</p><p> MyBase.new(50) ' -> how to call ???</p><p> End Sub</p><p></p><p> Public Sub getSelectedItem()</p><p> Dim itemIndex As Integer</p><p> Dim cView As GUIControl</p><p></p><p> cView = CurrentView '-> CurrentView is always Nothing</p><p></p><p> facadeView = New GUIFacadeControl(GetID)</p><p> itemIndex = facadeView.SelectedItem '-> returns zero</p><p> End Sub</p><p>End Class[/CODE]</p><p></p><p>Can somebody please help me?</p></blockquote><p></p>
[QUOTE="Messiahs, post: 643241, member: 85605"] Hello, I'm currently developing my first plugin and I'm having some very basic problems with the GUIFacadeControl. I'm trying to get the current selected Item in a list (like current selected item in a playlist). [CODE]Imports MediaPortal.GUI.Library Public Class cGUIHandler Inherits GUIFacadeControl <SkinControlAttribute(50)> Public facadeView As GUIFacadeControl = Nothing Sub New() MyBase.new(50) ' -> how to call ??? End Sub Public Sub getSelectedItem() Dim itemIndex As Integer Dim cView As GUIControl cView = CurrentView '-> CurrentView is always Nothing facadeView = New GUIFacadeControl(GetID) itemIndex = facadeView.SelectedItem '-> returns zero End Sub End Class[/CODE] Can somebody please help me? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
vb.net & GUIFacadeControl problem
Contact us
RSS
Top
Bottom