121 char local_w_text[50];
122 strcpy (local_w_text, name);
125 strcpy (label_name, name);
126 strcat (label_name,
"_label");
128 char text_field_name[50];
129 strcpy (text_field_name, name);
130 strcat (text_field_name,
"_text_field");
132 XmString local_text = XmStringCreateLocalized (local_w_text);
133 text_label = XtVaCreateManagedWidget (label_name,
137 XmNlabelString, local_text,
146 XmStringFree (local_text);
148 text_field = XtVaCreateManagedWidget (text_field_name,
149 xmTextFieldWidgetClass,
152 XmNvalue, (String)initial,
163 XtAddCallback (text_field,
164 XmNvalueChangedCallback,
168 XtAddCallback (text_field,
169 XmNvalueChangedCallback,
void AddYourselfTo(G4OpenGLXmVWidgetContainer *)
Widget * GetPointerToWidget()
Widget * GetPointerToParent()
void SetName(const char *)
virtual ~G4OpenGLXmTextField()
G4OpenGLXmTextField(const char *, G4double *)