realize initially-unmanaged widgets

svn: r6874
This commit is contained in:
Matthew Flatt 2007-07-09 09:16:51 +00:00
parent 3740222f3a
commit dd771d5883
10 changed files with 24 additions and 0 deletions

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -295,6 +295,8 @@ Bool wxMessage::Create(wxPanel *panel,
if (!(style & wxINVISIBLE))
XtManageChild(X->frame);
else
XtRealizeWidget(wgt);
// create widget
if (bitmap) {
lblT = XtNpixmap;

View File

@ -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) {

View File

@ -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

View File

@ -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)) {