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!)
Check for dialog window
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="horned_reaper" data-source="post: 835655" data-attributes="member: 109929"><p><strong>AW: Re: Check for dialog window</strong></p><p></p><p></p><p></p><p>Thank you for your reply.</p><p>Just tried it with the following code:</p><p>[CODE]</p><p> private static void closeRoutedWindow()</p><p> {</p><p> if (GUIWindowManager.IsRouted)</p><p> {</p><p> GUIWindow win = GUIWindowManager.GetWindow(GUIWindowManager.RoutedWindow);</p><p> </p><p> if (win != null)</p><p> {</p><p> if (win is GUIDialogFile) ((GUIDialogFile)win).Close();</p><p> else if (win is VirtualKeyboard) ((VirtualKeyboard)win).PageDestroy();</p><p> else ((GUIDialogWindow)win).PageDestroy();</p><p> }</p><p> }</p><p> }[/CODE]</p><p></p><p>It seems working fine.</p><p>My problem is that the dialog windows of MP-TV Series and Moving Pictures (see attached screenshot) click the default button on closing. The same is on pressing the ESC or Back keys.</p><p>Is it possible to just destroy the dialog window without clicking the default button?</p></blockquote><p></p>
[QUOTE="horned_reaper, post: 835655, member: 109929"] [b]AW: Re: Check for dialog window[/b] Thank you for your reply. Just tried it with the following code: [CODE] private static void closeRoutedWindow() { if (GUIWindowManager.IsRouted) { GUIWindow win = GUIWindowManager.GetWindow(GUIWindowManager.RoutedWindow); if (win != null) { if (win is GUIDialogFile) ((GUIDialogFile)win).Close(); else if (win is VirtualKeyboard) ((VirtualKeyboard)win).PageDestroy(); else ((GUIDialogWindow)win).PageDestroy(); } } }[/CODE] It seems working fine. My problem is that the dialog windows of MP-TV Series and Moving Pictures (see attached screenshot) click the default button on closing. The same is on pressing the ESC or Back keys. Is it possible to just destroy the dialog window without clicking the default button? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Check for dialog window
Contact us
RSS
Top
Bottom