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
Problem beginning plugin
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="jmhecker" data-source="post: 539000" data-attributes="member: 86959"><p>Okay, got back to the computer to start getting this going again, and it appears I am a bit rusty. One more issue is causing me to prevent compiling the 'basic example' plugin. This is the sub causing the problem:</p><p></p><p>[CODE]</p><p> Protected Overloads Overrides Sub OnClicked(ByVal controlId As Integer, ByVal control As GUIControl, ByVal actionType As MediaPortal.GUI.Library.Action.ActionType)</p><p> If [U]control = buttonOne[/U] Then</p><p> OnButtonOne()</p><p> End If</p><p> If [U]control = buttonTwo[/U] Then</p><p> OnButtonTwo()</p><p> End If</p><p> MyBase.OnClicked(controlId, control, actionType)</p><p> End Sub</p><p>[/CODE]</p><p></p><p>It is throwing an error of: </p><p>[CODE]</p><p>Operator '=' is not defined for types 'MediaPortal.GUI.Library.GUIControl' and MediaPortal.GUI.Library.GUIButtonControl'</p><p>[/CODE]</p><p></p><p>It seems that VB.Net is unable to compare buttomOne and control. So, I tried casting types back and forth to see if perhaps VB.Net was just not seeing them properly or something, to no avail.</p><p></p><p>Does anyone have any ideas?</p><p></p><p>EDIT:</p><p>I underlined the 2 things that have blue squiggly underlines in the VB.Net IDE.</p></blockquote><p></p>
[QUOTE="jmhecker, post: 539000, member: 86959"] Okay, got back to the computer to start getting this going again, and it appears I am a bit rusty. One more issue is causing me to prevent compiling the 'basic example' plugin. This is the sub causing the problem: [CODE] Protected Overloads Overrides Sub OnClicked(ByVal controlId As Integer, ByVal control As GUIControl, ByVal actionType As MediaPortal.GUI.Library.Action.ActionType) If [U]control = buttonOne[/U] Then OnButtonOne() End If If [U]control = buttonTwo[/U] Then OnButtonTwo() End If MyBase.OnClicked(controlId, control, actionType) End Sub [/CODE] It is throwing an error of: [CODE] Operator '=' is not defined for types 'MediaPortal.GUI.Library.GUIControl' and MediaPortal.GUI.Library.GUIButtonControl' [/CODE] It seems that VB.Net is unable to compare buttomOne and control. So, I tried casting types back and forth to see if perhaps VB.Net was just not seeing them properly or something, to no avail. Does anyone have any ideas? EDIT: I underlined the 2 things that have blue squiggly underlines in the VB.Net IDE. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Problem beginning plugin
Contact us
RSS
Top
Bottom