diff --git a/src/wxxt/src/Windows/Button.cc b/src/wxxt/src/Windows/Button.cc index d13d1b25c3..8c1ff059cc 100644 --- a/src/wxxt/src/Windows/Button.cc +++ b/src/wxxt/src/Windows/Button.cc @@ -87,6 +87,8 @@ Bool wxButton::Create(wxPanel *panel, wxFunction function, char *label, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create widget wgt = XtVaCreateManagedWidget @@ -152,6 +154,8 @@ Bool wxButton::Create(wxPanel *panel, wxFunction function, wxBitmap *bitmap, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create widget pm = (Pixmap)bitmap->GetLabelPixmap(TRUE); diff --git a/src/wxxt/src/Windows/Canvas.cc b/src/wxxt/src/Windows/Canvas.cc index 18a039dab7..7ef77e9900 100644 --- a/src/wxxt/src/Windows/Canvas.cc +++ b/src/wxxt/src/Windows/Canvas.cc @@ -87,6 +87,8 @@ Bool wxCanvas::Create(wxPanel *panel, int x, int y, int width, int height, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create scrolled area wgt = XtVaCreateManagedWidget diff --git a/src/wxxt/src/Windows/CheckBox.cc b/src/wxxt/src/Windows/CheckBox.cc index 807a4dcb05..b4b3bac455 100644 --- a/src/wxxt/src/Windows/CheckBox.cc +++ b/src/wxxt/src/Windows/CheckBox.cc @@ -85,6 +85,8 @@ Bool wxCheckBox::Create(wxPanel *panel, wxFunction function, char *label, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create widget wgt = XtVaCreateManagedWidget diff --git a/src/wxxt/src/Windows/Choice.cc b/src/wxxt/src/Windows/Choice.cc index fcbdc65877..873b7ea863 100644 --- a/src/wxxt/src/Windows/Choice.cc +++ b/src/wxxt/src/Windows/Choice.cc @@ -96,6 +96,8 @@ Bool wxChoice::Create(wxPanel *panel, wxFunction function, char *label, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create widget wgt = XtVaCreateManagedWidget diff --git a/src/wxxt/src/Windows/Gauge.cc b/src/wxxt/src/Windows/Gauge.cc index f0591f7e02..92e4ed5fbb 100644 --- a/src/wxxt/src/Windows/Gauge.cc +++ b/src/wxxt/src/Windows/Gauge.cc @@ -93,6 +93,8 @@ Bool wxGauge::Create(wxPanel *panel, char *label, int _range, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create the slider widget wgt = XtVaCreateManagedWidget diff --git a/src/wxxt/src/Windows/ListBox.cc b/src/wxxt/src/Windows/ListBox.cc index f2bd471211..dc2e189fc8 100644 --- a/src/wxxt/src/Windows/ListBox.cc +++ b/src/wxxt/src/Windows/ListBox.cc @@ -112,6 +112,8 @@ Bool wxListBox::Create(wxPanel *panel, wxFunction func, char *title, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create viewport wgt = XtVaCreateManagedWidget diff --git a/src/wxxt/src/Windows/Message.cc b/src/wxxt/src/Windows/Message.cc index f93884fd1e..b93737722f 100644 --- a/src/wxxt/src/Windows/Message.cc +++ b/src/wxxt/src/Windows/Message.cc @@ -295,6 +295,8 @@ Bool wxMessage::Create(wxPanel *panel, if (!(style & wxINVISIBLE)) XtManageChild(X->frame); + else + XtRealizeWidget(wgt); // create widget if (bitmap) { lblT = XtNpixmap; diff --git a/src/wxxt/src/Windows/Panel.cc b/src/wxxt/src/Windows/Panel.cc index f0acae6547..d1ff2bc7b6 100644 --- a/src/wxxt/src/Windows/Panel.cc +++ b/src/wxxt/src/Windows/Panel.cc @@ -100,6 +100,8 @@ Bool wxPanel::Create(wxPanel *panel, int x, int y, int width, int height, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // internal representation if (style & wxBORDER) { diff --git a/src/wxxt/src/Windows/RadioBox.cc b/src/wxxt/src/Windows/RadioBox.cc index ebf719c8eb..d3eb7d72c8 100644 --- a/src/wxxt/src/Windows/RadioBox.cc +++ b/src/wxxt/src/Windows/RadioBox.cc @@ -129,6 +129,8 @@ Bool wxRadioBox::Create(wxPanel *panel, wxFunction func, char *label, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create group widget, which holds the the toggles wgt = XtVaCreateManagedWidget("radiobox", xfwfGroupWidgetClass, X->frame, @@ -257,6 +259,8 @@ Bool wxRadioBox::Create(wxPanel *panel, wxFunction func, char *label, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // create group widget, which holds the the toggles diff --git a/src/wxxt/src/Windows/Slider.cc b/src/wxxt/src/Windows/Slider.cc index 701658f454..fe44303760 100644 --- a/src/wxxt/src/Windows/Slider.cc +++ b/src/wxxt/src/Windows/Slider.cc @@ -94,6 +94,8 @@ Bool wxSlider::Create(wxPanel *panel, wxFunction func, char *label, NULL); if (!(style & wxINVISIBLE)) XtManageChild(wgt); + else + XtRealizeWidget(wgt); X->frame = wgt; // compute sizes of the slider widget if (style & (wxHORIZONTAL << 2)) {