button - fixed size

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

Submitted by piotrek on Sat, 05/22/2010 - 07:27. General Questions
Hello.
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);
Arg args[1];
XtSetArg(args[0], XmNresizePolicy, XmRESIZE_NONE);
XtSetValues(button, args, 1);

Thanks in advance,
Piotrek.

Fri, 06/29/2012 - 10:30
#1
3 posts / 0 new
Last post
7
Fri, 06/29/2012 - 10:30
-14
Fri, 06/29/2012 - 10:31