Normal
AW: Re: Check for dialog windowThank 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?
AW: Re: Check for dialog window
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?