#include #include #include /* header file for frame stuff */ int main(int argc, char **argv) { Widget top_wid, button, frame, textField; XtAppContext app; top_wid = XtVaAppInitialize(&app, "TextBox", NULL, 0, &argc, argv, NULL, NULL); frame = XtVaCreateManagedWidget("frame", xmFrameWidgetClass, top_wid, XmNshadowType, XmSHADOW_IN, NULL); textField = XmCreateTextField(frame, "Text Box", NULL, 0); XtManageChild(textField); XtRealizeWidget(top_wid); XtAppMainLoop(app); }