- Widget widget = (Widget) m_mainWidget;
-
- bool managed = XtIsManaged(widget);
-
- if (managed)
- XtUnmanageChild (widget);
-
- if (((m_windowStyle & wxHORIZONTAL) == wxHORIZONTAL) && (width > -1))
- {
- XtVaSetValues (widget, XmNscaleWidth, wxMax (width, 10), NULL);
- }
-
- if (((m_windowStyle & wxVERTICAL) == wxVERTICAL) && (height > -1))
- {
- XtVaSetValues (widget, XmNscaleHeight, wxMax (height, 10), NULL);
- }
-
- int xx = x; int yy = y;
- AdjustForParentClientOrigin(xx, yy, sizeFlags);
-
- if (x > -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
- XtVaSetValues (widget, XmNx, xx, NULL);
- if (y > -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
- XtVaSetValues (widget, XmNy, yy, NULL);
-
- if (managed)
- XtManageChild (widget);
+ Widget widget = (Widget) m_mainWidget;
+
+ bool managed = XtIsManaged(widget);
+
+ if (managed)
+ XtUnmanageChild (widget);
+
+ if (((m_windowStyle & wxHORIZONTAL) == wxHORIZONTAL) && (width > -1))
+ {
+ XtVaSetValues (widget, XmNscaleWidth, wxMax (width, 10), NULL);
+ }
+
+ if (((m_windowStyle & wxVERTICAL) == wxVERTICAL) && (height > -1))
+ {
+ XtVaSetValues (widget, XmNscaleHeight, wxMax (height, 10), NULL);
+ }
+
+ int xx = x; int yy = y;
+ AdjustForParentClientOrigin(xx, yy, sizeFlags);
+
+ if (x > -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
+ XtVaSetValues (widget, XmNx, xx, NULL);
+ if (y > -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
+ XtVaSetValues (widget, XmNy, yy, NULL);
+
+ if (managed)
+ XtManageChild (widget);