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
Language specific support
Deutsches MediaPortal Forum
Allgemein
Einsteigerforum
Visual Basic + Plugin / Brauche Starthilfe
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="BigGranu" data-source="post: 977456" data-attributes="member: 137007"><p>Hallo,</p><p>es geht um ein Windowplugin. </p><p>Nach <span style="color: #0000ff"><a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/6_Plugins/Plugin_Developer's_Guide/1_Develop_a_Plugin/Visual_Basic" target="_blank"><span style="color: #0000ff">diesem</span></a></span> Wiki habe ich begonnen.</p><p> </p><p>Die erstellte dll dann nach "C:\Program Files\Team MediaPortal\MediaPortal\plugins\Windows" kopiert</p><p>und gehofft sie würde erkannt werden.</p><p>Sie wird aber gar nicht angezeigt.</p><p> </p><p>[CODE=C#]</p><p>Imports System</p><p>Imports System.Windows.Forms</p><p>Imports MediaPortal.GUI.Library</p><p>Imports MediaPortal.Dialogs</p><p> </p><p>Namespace OurPlugin</p><p> Public Class Class1</p><p> Inherits GUIWindow</p><p> Implements ISetupForm</p><p> </p><p> Public Sub New()</p><p> </p><p> End Sub</p><p> </p><p> Public Overrides Property GetID As Integer</p><p> Get</p><p> Return 5690</p><p> End Get</p><p> </p><p> Set</p><p> End Set</p><p> End Property</p><p> </p><p> Public Function Author() As String Implements MediaPortal.GUI.Library.ISetupForm.Author</p><p> Return "BigGranu"</p><p> End Function</p><p> </p><p> Public Function CanEnable() As Boolean Implements MediaPortal.GUI.Library.ISetupForm.CanEnable</p><p> Return True</p><p> End Function</p><p> </p><p> Public Function DefaultEnabled() As Boolean Implements MediaPortal.GUI.Library.ISetupForm.DefaultEnabled</p><p> Return True</p><p> End Function</p><p> </p><p> Public Function Description() As String Implements MediaPortal.GUI.Library.ISetupForm.Description</p><p> Return "MyFirstPlugin"</p><p> End Function</p><p> </p><p> Public Function GetHome(ByRef strButtonText As String, ByRef strButtonImage As String, ByRef strButtonImageFocus As String, ByRef strPictureImage As String) As Boolean Implements MediaPortal.GUI.Library.ISetupForm.GetHome</p><p> strButtonText = String.Empty</p><p> strButtonImage = String.Empty</p><p> strButtonImageFocus = String.Empty</p><p> strPictureImage = String.Empty</p><p> Return False</p><p> End Function</p><p> </p><p> Public Function GetWindowId() As Integer Implements MediaPortal.GUI.Library.ISetupForm.GetWindowId</p><p> Return 5690</p><p> End Function</p><p> </p><p> Public Function HasSetup() As Boolean Implements MediaPortal.GUI.Library.ISetupForm.HasSetup</p><p> Return True</p><p> End Function</p><p> </p><p> Public Function PluginName() As String Implements MediaPortal.GUI.Library.ISetupForm.PluginName</p><p> Return "MyFirstPlugin"</p><p> End Function</p><p> </p><p> Public Sub ShowPlugin() Implements MediaPortal.GUI.Library.ISetupForm.ShowPlugin</p><p> MsgBox("Nothing to configure, this is just an example")</p><p> End Sub</p><p> End Class</p><p>End Namespace</p><p>[/code]</p></blockquote><p></p>
[QUOTE="BigGranu, post: 977456, member: 137007"] Hallo, es geht um ein Windowplugin. Nach [COLOR=#0000ff][URL="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/6_Plugins/Plugin_Developer's_Guide/1_Develop_a_Plugin/Visual_Basic"][COLOR=#0000ff]diesem[/COLOR][/URL][/COLOR] Wiki habe ich begonnen. Die erstellte dll dann nach "C:\Program Files\Team MediaPortal\MediaPortal\plugins\Windows" kopiert und gehofft sie würde erkannt werden. Sie wird aber gar nicht angezeigt. [CODE=C#] Imports System Imports System.Windows.Forms Imports MediaPortal.GUI.Library Imports MediaPortal.Dialogs Namespace OurPlugin Public Class Class1 Inherits GUIWindow Implements ISetupForm Public Sub New() End Sub Public Overrides Property GetID As Integer Get Return 5690 End Get Set End Set End Property Public Function Author() As String Implements MediaPortal.GUI.Library.ISetupForm.Author Return "BigGranu" End Function Public Function CanEnable() As Boolean Implements MediaPortal.GUI.Library.ISetupForm.CanEnable Return True End Function Public Function DefaultEnabled() As Boolean Implements MediaPortal.GUI.Library.ISetupForm.DefaultEnabled Return True End Function Public Function Description() As String Implements MediaPortal.GUI.Library.ISetupForm.Description Return "MyFirstPlugin" End Function Public Function GetHome(ByRef strButtonText As String, ByRef strButtonImage As String, ByRef strButtonImageFocus As String, ByRef strPictureImage As String) As Boolean Implements MediaPortal.GUI.Library.ISetupForm.GetHome strButtonText = String.Empty strButtonImage = String.Empty strButtonImageFocus = String.Empty strPictureImage = String.Empty Return False End Function Public Function GetWindowId() As Integer Implements MediaPortal.GUI.Library.ISetupForm.GetWindowId Return 5690 End Function Public Function HasSetup() As Boolean Implements MediaPortal.GUI.Library.ISetupForm.HasSetup Return True End Function Public Function PluginName() As String Implements MediaPortal.GUI.Library.ISetupForm.PluginName Return "MyFirstPlugin" End Function Public Sub ShowPlugin() Implements MediaPortal.GUI.Library.ISetupForm.ShowPlugin MsgBox("Nothing to configure, this is just an example") End Sub End Class End Namespace [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Allgemein
Einsteigerforum
Visual Basic + Plugin / Brauche Starthilfe
Contact us
RSS
Top
Bottom