Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!shelby!bloom-beacon!eru!luth!sunic!mcsun!ukc!harrier.ukc.ac.uk!rlh2 From: rlh2@ukc.ac.uk (Richard Hesketh) Newsgroups: comp.windows.x Subject: Re: mapping multiple (independent) athena widgets Message-ID: <5193@harrier.ukc.ac.uk> Date: 28 Jul 90 08:24:29 GMT References: <_Z3$!T%@rpi.edu> Reply-To: rlh2@ukc.ac.uk (Richard Hesketh) Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 31 Summary: Expires: Sender: Followup-To: In article <_Z3$!T%@rpi.edu> pattersw@cs.rpi.edu (William Patterson) writes: >I am trying to display 2 independent sets of widgets (i.e. both are >direct children of the root widget). However, when >XtRealizeWidget(rootWidget) is called, only one of the children is >mapped. To quote page 66 of the Intrinsics manual (section 5.2): "None of the Intrinsics-supplied pop-shells (sic) will simultaneously manage more than one child." So that is why you will only ever see one managed widget. Worse than that this one widget is always the same size as the shell it is stuck in (either the size as defined by the widget or as defined by the size of the shell if it is set). To get around this you must place the two labels in a composite parent whose parent is the shell, a box or a form will do. If you want to display a widget directly you should create it *unmanaged* and then do an explicit XtMapWidget(). I don't think you'll want to do that in this case though. >Bill Patterson >pattersw@turing.cs.rpi.edu Richard Hesketh : @nsfnet-relay.ac.uk:rlh2@ukc.ac.uk : rlh2@ukc.ac.uk ..!mcsun!ukc!rlh2 --- Computing Lab., University of Kent at Canterbury, Canterbury, Kent, CT2 7NF, United Kingdom. Tel: +44 227 764000 ext 7620/3682