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!)
GUIDialogOK Missing?
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="GF__74" data-source="post: 375768" data-attributes="member: 76723"><p>I have been going through the Plugin creation tutorial <a href="https://www.team-mediaportal.com/manual/MediaPortal1_Development/PluginDevelopersGuide" target="_blank">here</a>. I am using VS2005 SP1 on a Vista (x86) machine, running MPv1</p><p></p><p>All was going well until i got to this bit of code.</p><p>[CODE]</p><p>private void OnButtonOne()</p><p>{</p><p> GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow(</p><p> (int)GUIWindow.Window.WINDOW_DIALOG_OK);</p><p> dlg.SetHeading("Button has been pressed");</p><p> dlg.SetLine(1, "You pressed button 1");</p><p> dlg.SetLine(2, String.Empty);</p><p> dlg.SetLine(3, String.Empty);</p><p> dlg.DoModal(GUIWindowManager.ActiveWindow);</p><p>}[/CODE]</p><p></p><p>I get the compile error</p><p></p><p></p><p>I am using the following as per the guide.</p><p></p><p>[CODE]using System;</p><p>using System.Windows.Forms;</p><p>using MediaPortal.GUI.Library;[/CODE]</p><p></p><p>Now, i can only assume that proceedures in Core.Dll have changed since this guide was last updated, but i may be wrong.</p><p></p><p>Any ideas??</p><p></p><p>Thanks</p><p></p><p>G</p></blockquote><p></p>
[QUOTE="GF__74, post: 375768, member: 76723"] I have been going through the Plugin creation tutorial [URL="https://www.team-mediaportal.com/manual/MediaPortal1_Development/PluginDevelopersGuide"]here[/URL]. I am using VS2005 SP1 on a Vista (x86) machine, running MPv1 All was going well until i got to this bit of code. [CODE] private void OnButtonOne() { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow( (int)GUIWindow.Window.WINDOW_DIALOG_OK); dlg.SetHeading("Button has been pressed"); dlg.SetLine(1, "You pressed button 1"); dlg.SetLine(2, String.Empty); dlg.SetLine(3, String.Empty); dlg.DoModal(GUIWindowManager.ActiveWindow); }[/CODE] I get the compile error I am using the following as per the guide. [CODE]using System; using System.Windows.Forms; using MediaPortal.GUI.Library;[/CODE] Now, i can only assume that proceedures in Core.Dll have changed since this guide was last updated, but i may be wrong. Any ideas?? Thanks G [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
GUIDialogOK Missing?
Contact us
RSS
Top
Bottom