realize initially-unmanaged widgets
svn: r6874
This commit is contained in:
parent
3740222f3a
commit
dd771d5883
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -295,6 +295,8 @@ Bool wxMessage::Create(wxPanel *panel,
|
|||
|
||||
if (!(style & wxINVISIBLE))
|
||||
XtManageChild(X->frame);
|
||||
else
|
||||
XtRealizeWidget(wgt);
|
||||
// create widget
|
||||
if (bitmap) {
|
||||
lblT = XtNpixmap;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user