Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!bu.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!ukc!harrier.ukc.ac.uk!rlh2 From: rlh2@ukc.ac.uk (R.L.Hesketh) Newsgroups: comp.windows.x Subject: Re: Determining what area a viewport will be placed over?? (XAW) Message-ID: <4370@harrier.ukc.ac.uk> Date: 11 Apr 90 08:47:59 GMT References: <13388@thorin.cs.unc.edu> Reply-To: rlh2@ukc.ac.uk (Richard Hesketh) Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 23 In article <13388@thorin.cs.unc.edu> markham@rho.cs.unc.edu (Andrew Markham) writes: > >I have a viewport whose child is a form widget and I would like to be >able to tell the viewport where to position itself. Funny you should say this .. someone here came to me with the same problem, they wanted to be able to specify a new X and Y for the clipped child. Currently if you do a SetValues on the child of the Athena Viewport it refuses the request. What you need to change is the geometry manager inside the Viewport to accept the X and Y change request .. funny really, coz everything is in there to cope with moving the child (there is a MoveChild(w, x, y) procedure). I've fixed this in my own version of the Viewport (which uses different scrolly-bars) .. but as there is a need out there I'll send you diffs for Athena Viewport and also pass them on to Chris Peterson and see if he wants to include them. Richard Hesketh : @nsfnet-relay.ac.uk:rlh2@ukc.ac.uk : rlh2@ukc.ac.uk ..!mcvax!ukc!rlh2 --- Computing Lab., University of Kent at Canterbury, Canterbury, Kent, CT2 7NF, United Kingdom. Tel: +44 227 764000 ext 3682/7620