Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!CIVE.RI.CMU.EDU!Chi-Ming.Yang From: Chi-Ming.Yang@CIVE.RI.CMU.EDU Newsgroups: comp.windows.x Subject: X11 Toolkit Message-ID: <8806101801.AA21187@ATHENA.MIT.EDU> Date: 10 Jun 88 18:02:04 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 50 ** urgent ** I have some questions about using the X11 Toolkit (widgets). I am writing an application program which will open several windows (or widgets) on the screen with fixed window layout, i.e. the user of this program is not encouraged to change the configurations of those windows. Then, within these windows, some texts and graphics entities will be displayed. I read the X Toolkit Intrinsics manual, but I still haven't a clear idea about what is the normal programming sequence of those massive functions in X11 (and X Toolkit). My idea is to adopt the Text, Label, and Viewport widgets as the first-level (children of the toplevelshell) windows on my screen layout. Then, other windows will be attached to those widgets (if possible) as children for displaying purpose. Now, after testing the Toolkit functions and associated examples in Xaw. I have some questions: 1. Why can't I explicitly locate the widgets I create on the screen? Each time after I call the XtRealizeWidget(), I have to use the cursor (mouse) to locate and size the window (widget). This is not what I need. I just want the created widgets to be placed at the predetermined place on the screen. 2. For Viewport widget, I am supposed to create a child for this widget. I guess I can use one ordinary window as the child. Is that right? Then, I can draw texts and lines on this child window and use the scrolling capability of the parent widget (Viewport widget). Is that true? 3. Please tell me how to correctly implement a pop-up menu for a widget or window. Are there any higher level toolkits or functions which I can call directly to arrange the items and sequences in the menu? Your suggestions and help is very much appreciated. Chi-ming Yang Carnegie-Mellon University Department of Civil Engineering E-mail address : cy0l@andrew.cmu.edu