(Sorry if this is too long for hand held chatters.) Hi, I am starting to program for X Window and Xt. I am having a few problems. I have been reading extensively several books and much internet stuff, but unfortunately most examples are 'simple' and have limited usefullness and then the authors jump straight into some other system such as Qt. I would appreciate some discussion. Thank you, Colin The essence of my code: hMain = XtAppCreateShell(..., applicationShellWidgetClass, ...); // XResizeWindow: XtSetValues(hMain, args, NumArgs); (This works correctly.) // add a panel: hPanel = XtCreateManagedWidget("panel", panedWidgetClass, hMain, ...); point A // repeat the following paragraph as often required: strcpy( szTemp, "File"); Menu_button[++TopMenuID] = XtCreateManagedWidget( szTemp, menuButtonWidgetClass, hPanel, ...) point B Notes: args used for Setting button size: NumArgs = 0; XtSetArg(args[NumArgs], XtNwidth, MenuButtonWidth); NumArgs++; XtSetArg(args[NumArgs], XtNheight, MenuButtonHeight); NumArgs++; lines to be placed at either point A or point B : (initially at A) XtRealizeWidget(hMain); XtMapWidget( hPanel ); XFlush(TheDisplay); first problem: Button size is ignored - Why? Sizing works okay for main window/panel. Buttons appear full width "stacked" vertically so that the first dominates the screen and others can be seen as edges below first: ------------- : : : : : B1 : <-- this is on top : : : : ------------- : B2 : ------------- : B3 : ------------- second question: If I move the three lines from point A to point B then there is a reverse stack: Why? ------------- : B1 : ------------- : B2 : ------------- : : : : : B3 : <-- this is on top : : : : ------------- third question: If I create the buttons into the main window (not panel) thus: Menu_button[++TopMenuID] = XtCreateManagedWidget( szTemp, menuButtonWidgetClass, hMain, ...) the buttons are the correct size, but all are stacked exactly on top of each other so that only the last button is visible/accessable. Why? fourth question: Do you know how to (using the last version) space the buttons uniformly across the window? Regards, Colin PS: Please snip viscously after first read. PS: I don't want a lecture on "Why don't you use Qt, C++, Java, Basic, Pearl..." We have been through all that, and this is a question on X Window and Xt. It would be good to start a discussion on coding directly for X11 and maybe we can share ideas. Thank you.