Submitted by piotrek on Sat, 05/22/2010 - 07:27. General Questions
I have been trying to write a simple programme - just a window with a button inside.
I want the button not to resize with the window - it should have fixed size and should be inextensible.
I suppose an answer for this question is very obvious, but I can't find it out.
I created the button and set XmNresizePolicy, but it still resizes while fiddling with the window size:
top_wid = XtVaAppInitialize(&app, "Push", NULL, 0,
&argc, argv, NULL, NULL);
button = XmCreatePushButton(top_wid, "Push_me", NULL, 0);
XtSetArg(args, XmNresizePolicy, XmRESIZE_NONE);
XtSetValues(button, args, 1);
Thanks in advance,