genesis@csuchico.edu (Steven Chang) (10/05/90)
Hi, I just wonder if anyone can help with this simple and annoying problem with moving a widget. I am using aw form widget, in it I have a button or two of command widget. I have been trying make the widget move to a new location. I try using both the ArgList x, y position and XtMoveWidget function without any success. What give? Any help would be appreciated. Please respond to my email cause it's hard to monitor this news group with its large amount of posting...:-) By the way, I'm using X11R4. Here's the sample code: pressme = XtCreateManagedWidget("pressme",commandWidgetClass, form, NULL, 0); XtMoveWidget(pressme,10,100); thanks Steven email: genesis@csuchico.edu
converse@EXPO.LCS.MIT.EDU (10/11/90)
> I am using aw form widget, in it I have > a button or two of command widget. I have been trying make the widget > move to a new location. I try using both the ArgList x, y position and > XtMoveWidget function without any success. Read section 6.3.4 of the Athena widget set manual, and do what it says there, or, unmanage the child, set the approprate resources on the child widget, and then manage the child. XtMoveWidget is used in writing constraint widgets. It is not used by applications to move the children of constaint widgets. Richard Hesketh posted an excellent answer to a similar question on October 4th, under the subject: Re: Resetting fromHoriz or fromVert resources.