Author: toshok
Date: 2006-08-08 14:45:03 -0400 (Tue, 08 Aug 2006)
New Revision: 63504
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs
Log:
2006-08-08 Chris Toshok <[EMAIL PROTECTED]>
* PrintControllerWithStatusDialog.cs: don't .Close() the status
dialog, as this causes X errors later on, since we actually
destroy the window. Instead, .Hide() it.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-08 18:17:02 UTC (rev 63503)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-08 18:45:03 UTC (rev 63504)
@@ -1,3 +1,9 @@
+2006-08-08 Chris Toshok <[EMAIL PROTECTED]>
+
+ * PrintControllerWithStatusDialog.cs: don't .Close() the status
+ dialog, as this causes X errors later on, since we actually
+ destroy the window. Instead, .Hide() it.
+
2006-08-08 Peter Dennis Bartok <[EMAIL PROTECTED]>
* ComboBox.cs: Added focus reflection for popup window
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs
2006-08-08 18:17:02 UTC (rev 63503)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs
2006-08-08 18:45:03 UTC (rev 63504)
@@ -57,22 +57,21 @@
public override void OnEndPage(PrintDocument document,
PrintPageEventArgs e) {
if (dialog.DialogResult == DialogResult.Cancel) {
e.Cancel = true;
- dialog.Close();
+ dialog.Hide();
return;
}
underlyingController.OnEndPage (document, e);
}
public override void OnEndPrint(PrintDocument document,
PrintEventArgs e) {
- if (dialog.Visible)
- dialog.Close();
+ dialog.Hide();
underlyingController.OnEndPrint (document, e);
}
public override Graphics OnStartPage(PrintDocument document,
PrintPageEventArgs e) {
if (dialog.DialogResult == DialogResult.Cancel) {
e.Cancel = true;
- dialog.Close();
+ dialog.Hide();
return null;
}
dialog.LabelText = string.Format("Page {0} of
document", ++currentPage);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches