🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36689

Re: Form problem

#36689
From: Chris D. Peterson
Date: Mon, 12 Feb 1990 16:40
35 lines
2016 bytes
> 	I am having a small problem with the form widget.  After I create a
> ManagedChild on the form widget and try to move the widget by XtMoveWidget,
> and then setting the XtSetValues with the new coordinates, upon
> creating another widget onto the form causes the original widget to
> move back to it created location.  Is there any way I can change the
> coordinates of an exisiting widget permanently?

Don't do that.

The Form widget's geometry manager will place its children where it believes 
is apropriate, given the size and location of each of the other children.  You
can control the order of the children and their relative positions (i.e. this
widget will be below that widget, and to the right of this other widget) but you
cannot specify an exact placement.  The Form widget does not support it.  

So what can you do about this?  You have two choices, either find a composite
widget that does what you want, or write one yourself.  Trying to force a
composite to do something it wasn't designed for is just asking for trouble.

Also:

Don't use XtMoveWidget.  This function is reserved for the exclusive use of
Parent widgets to move their children around.  Application programmers should
use the SetValues Interface only.  If you can't do it with XtSetValues then you
probabally are doing something you shouldn't, and you'll more than likely
confuse this widget's Parent, causing strange behavior on resize.


						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213
Technical Details
Message-ID: <9002121640.AA10381@expo.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!kit
References: <BKILGORE.90Feb11220941@aiaia.nmsu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!kit
From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson)
Newsgroups: comp.windows.x
Subject: Re: Form problem
Message-ID: <9002121640.AA10381@expo.lcs.mit.edu>
Date: 12 Feb 90 16:40:25 GMT
References: <BKILGORE.90Feb11220941@aiaia.nmsu.edu>
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 35