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
Support
General Support
Need help to create my first 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="doug" data-source="post: 849222" data-attributes="member: 107195"><p>The first dialog contains the choice of Off/Normal/Motion Interpolation. Are you then trying to display a second dialog? If so...</p><p> </p><p>GUIDialogMenu dlgMenu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); //this is your original dialog</p><p>if (dlgMenu != null)</p><p>{</p><p></p><p>dlgMenu.Reset();</p><p>dlgMenu.SetHeading("Header");</p><p>dlgMenu.Add("Off");</p><p>dlgMenu.Add("Normal");</p><p>dlgMenu.Add("Motion Interpolation");</p><p>dlgMenu.DoModal(GetID);</p><p></p><p>switch (dlgMenu.SelectedLabel) //dlgMenu.SelectedLabel now contains a numerical value corresponding to the menu item selected</p><p>{</p><p> case 1: //Off is selected</p><p> //do stuff</p><p> return;</p><p> case 2: //Normal is selected</p><p> //do stuff </p><p> return;</p><p> case 3: //Motion Interpolation is selected</p><p> GUIDialogMenu NewdlgMenu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); //this is a new dialog</p><p> if (NewdlgMenu != null)</p><p> {</p><p> NewdlgMenu.Reset();</p><p> NewdlgMenu.SetHeading("Header#2");</p><p> NewdlgMenu.Add("More Items");</p><p> dlgMenu.DoModal(GetID); }</p><p> return;</p><p>}</p></blockquote><p></p>
[QUOTE="doug, post: 849222, member: 107195"] The first dialog contains the choice of Off/Normal/Motion Interpolation. Are you then trying to display a second dialog? If so... GUIDialogMenu dlgMenu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); //this is your original dialog if (dlgMenu != null) { dlgMenu.Reset(); dlgMenu.SetHeading("Header"); dlgMenu.Add("Off"); dlgMenu.Add("Normal"); dlgMenu.Add("Motion Interpolation"); dlgMenu.DoModal(GetID); switch (dlgMenu.SelectedLabel) //dlgMenu.SelectedLabel now contains a numerical value corresponding to the menu item selected { case 1: //Off is selected //do stuff return; case 2: //Normal is selected //do stuff return; case 3: //Motion Interpolation is selected GUIDialogMenu NewdlgMenu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); //this is a new dialog if (NewdlgMenu != null) { NewdlgMenu.Reset(); NewdlgMenu.SetHeading("Header#2"); NewdlgMenu.Add("More Items"); dlgMenu.DoModal(GetID); } return; } [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Need help to create my first plugin
Contact us
RSS
Top
Bottom