to use this to set border styles.
* Form.cs: Only set mdi child windows borders if the handle has
been created.
* MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
this directly on to the driver.
svn path=/trunk/mcs/; revision=53262
+2005-11-18 Jackson Harper <jackson@ximian.com>
+
+ * Control.cs: Put the enum check back in now that MDI doesnt have
+ to use this to set border styles.
+ * Form.cs: Only set mdi child windows borders if the handle has
+ been created.
+ * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
+ this directly on to the driver.
+
2005-11-18 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Just compute the mdi borders separately as they
2005-11-18 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Just compute the mdi borders separately as they
if (!Enum.IsDefined (typeof (BorderStyle), value))
throw new InvalidEnumArgumentException (string.Format("Enum argument value '{0}' is not valid for BorderStyle", value));
if (!Enum.IsDefined (typeof (BorderStyle), value))
throw new InvalidEnumArgumentException (string.Format("Enum argument value '{0}' is not valid for BorderStyle", value));
if (border_style != value) {
border_style = value;
if (border_style != value) {
border_style = value;
}
UpdateStyles();
} else {
}
UpdateStyles();
} else {
- if (mdi_child_context != null)
+ if (mdi_child_context != null && IsHandleCreated)
mdi_child_context.UpdateBorderStyle (value);
UpdateStyles ();
}
mdi_child_context.UpdateBorderStyle (value);
UpdateStyles ();
}
switch (FormBorderStyle) {
case FormBorderStyle.Fixed3D: {
switch (FormBorderStyle) {
case FormBorderStyle.Fixed3D: {
this.form = form;
this.mdi_container = mdi_container;
this.form = form;
this.mdi_container = mdi_container;
- if (form.FormBorderStyle != FormBorderStyle.None)
- form.InternalBorderStyle = (BorderStyle) MdiBorderStyle;
- else
- form.InternalBorderStyle = BorderStyle.None;
-
/*
minimize_button = new Button ();
minimize_button.Bounds = new Rectangle (form.Width - 62,
/*
minimize_button = new Button ();
minimize_button.Bounds = new Rectangle (form.Width - 62,