Path: utzoo!attcan!uunet!cs.utexas.edu!usc!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Widget with more than one window Message-ID: <8906271627.AA08356@expo.lcs.mit.edu> Date: 27 Jun 89 16:27:52 GMT References: <8906232004.AA05642@kentmath.kent.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 31 > I am trying to create a widget with more than one window. > I create subwindows of the XtWindow(w). Everything was fine except > when I used XtDispatch(event), where event->window is one of the subwindows > the event is not seen by the widget. > 1 - Will the toolkit have more support for multi window widgets. Nope. > 2 - Is there another way of handling this ? Read on MacDuff :-) The correct way to accomplish what you desire is not to have a widget with more than one window, but to have a widget that automatically creates, manages and realizes one or more children. If you handle all of these things in the widget code itself, it is not necessary for this widget to be a composite widget, athough there is no reason not the make it a composite widget. If you are looking for children that do not have any semantics of their own then you can just have the children be core widgets (Class widgetClass). The text widget does a very similiar thing with its optional scrollbar. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213