31#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
38#include <Xm/RowColumn.h>
40G4OpenGLXmTopLevelShell::G4OpenGLXmTopLevelShell (G4OpenGLXmViewer* v,
46 toplevel = XtVaCreatePopupShell
48 topLevelShellWidgetClass,
53 XmNdeleteResponse, XmDO_NOTHING,
54 XmNisHomogeneous, False,
59 XtNborderColor, borcol,
63 frame = XtVaCreateManagedWidget (name,
70 XtNborderColor, borcol,
77 top_box = XtVaCreateManagedWidget (name,
78 xmRowColumnWidgetClass,
81 XmNadjustMargin, True,
82 XmNisHomogeneous, False,
87 XtNborderColor, borcol,
94G4OpenGLXmTopLevelShell::~G4OpenGLXmTopLevelShell ()
96 XtDestroyWidget (toplevel);
99void G4OpenGLXmTopLevelShell::AddChild (G4OpenGLXmVWidgetContainer* container)
101 container->AddYourselfTo (
this);
104void G4OpenGLXmTopLevelShell::Realize ()
106 Cardinal num_children;
107 XtVaGetValues (toplevel,
108 XmNnumChildren, &num_children,
111 XtManageChild (toplevel);
112 XtRealizeWidget (toplevel);
113 XtPopup (toplevel, XtGrabNonexclusive);
116Widget* G4OpenGLXmTopLevelShell::GetPointerToWidget ()
121char* G4OpenGLXmTopLevelShell::GetName ()