30 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
36 #include <Xm/RowColumn.h>
39 G4OpenGLXmFramedBox::G4OpenGLXmFramedBox (
const char*
n,
46 G4OpenGLXmFramedBox::~G4OpenGLXmFramedBox ()
49 void G4OpenGLXmFramedBox::AddChild (G4OpenGLXmVWidgetComponent* component)
51 component->AddYourselfTo(
this);
52 Cardinal num_children;
53 XtVaGetValues (box_row_col,
54 XmNnumChildren, &num_children,
59 void G4OpenGLXmFramedBox::AddYourselfTo (G4OpenGLXmVWidgetShell* window)
62 pView = window->GetView ();
65 strcpy (framename,
name);
66 strcat (framename,
"_frame");
68 parent = window->GetPointerToWidget ();
69 frame = XtVaCreateManagedWidget (framename,
76 XtNborderColor, borcol,
83 box_row_col = XtVaCreateManagedWidget (
name,
84 xmRowColumnWidgetClass,
87 XmNadjustMargin, True,
88 XmNisHomogeneous, False,
89 XmNlabelString, (XmString)
name,
90 XmNradioAlwaysOne, radio,
91 XmNradioBehavior, radio,
96 XtNborderColor, borcol,