a problem of position widget

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

Questions about motif? Contact us

5 posts / 0 new
Last post
a problem of position widget

Submitted by wwf on Thu, 12/13/2001 - 03:42. Developers
How do you do,everyone!
I am a student of UESTC in China)
My problem is that
........
XtManageChild(widget);
XtVaSetValues(widget,XmNx,25,XmNy,25,NULL);
......

It can positiong the widget at (25,25),but
you can saw the widget at position of bengin,
then it at the position (25.25),
I want to ask if there is a method that can
move the widget to (25,25) but not saw the
process of moving?

ICS_support

I suspect that you are using a manager which is an XmBulletinBoard or an XmDrawingArea. This is correct.

You can do one of these

1) change the location before managing the widget.
XtVaSetValues(widget,XmNx,25,XmNy,25,NULL);
XtManageChild(widget);

2) create the child with the resources set, to begin with.

...
XtSetArg(args[n], XmNx, 25); n++;
XtSetArg(args[n], XmNy, 25); n++;
XmCreate...

wwf

thank you,dbl!
but after I try it as what you said,I found it
doesn`t resolve my problem.The widget is on
the original position ,is not show at the position
I want to .

Anonymous

What container widget are you using to hold the widget you want to move?

-scorch

wwf

if must I set the XmNdefaultPosition to False,
then I can move it?