[comp.windows.x] menus in composite and constraint widgets

egc@CS.CMU.EDU (eddie caplan) (08/07/90)

I would like to have the following widget structure:

    +--------------------------------------------------+
    + pane                                             +
    +                                                  +
    +   +------------------------------------------+   +
    +   + box1                                     +   +
    +   +                                          +   +
    +   +  +---------+  +------------ +            +   +
    +   +  + command +  + simpleMenu  +            +   +
    +   +  +         +  +             +            +   +
    +   +  +         +  + +---------+ +            +   +
    +   +  +         +  + + smeLine + +            +   +
    +   +  +         +  + +---------+ +            +   +
    +   +  +         +  + +---------+ +            +   +
    +   +  +         +  + + smeBSB  + +  ...etc... +   +
    +   +  +         +  + +---------+ +            +   +
    +   +  +         +  +             +            +   +
    +   +  +         +  +  ...etc...  +            +   +
    +   +  +         +  +             +            +   +
    +   +  +---------+  +-------------+            +   +
    +   +                                          +   +
    +   +------------------------------------------+   +
    +                                                  +
    +   +------------------------------------------+   +
    +   + box2                                     +   +
    +   +------------------------------------------+   +
    +                                                  +
    +   +------------------------------------------+   +
    +   + box3                                     +   +
    +   +------------------------------------------+   +
    +                                                  +
    +                    ...etc...                     +
    +--------------------------------------------------+

That is, a panedWidget containing several boxWidgets, which in turn
contain some number of commandWidgets and simpleMenus inside of them.

There are two problems:

(1) If I create this structure in a depth-first order (ie, pane, box1,
command, simpleMenu, smeLine, smeBSB, box2, box3) then the panedWidget
gets confused about sizes of box1, box2, and box3.  the only way i
have found that can create this structure correctly is to create the
menus AFTER everything else is in place.

(2) To complicate things, I would like different subsets of
box1..box<n> to be displayed at different times.  I've been trying to
do this by calling XtUnmanageChild and XtManageChild on the
appropriate boxes.  This works ok, except that the panedWidget gets
re-confused about the height of the boxes.

(3) Finally, I would like to be able to add and remove menu entries on
the fly and keep the panedWidget happy.


All of this is happening on a PMax running Mach, under X11R4 (I don't
know what bug fixes have been installed).

any suggestions?
--

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

INTERNET: caplan@cs.cmu.edu		  BITNET: caplan%cs.cmu.edu@cmuccvma
CSNET:	  caplan%cs.cmu.edu@relay.cs.net  UUCP:	  ...!seismo!cs.cmu.edu!caplan
USPS:	  eddie caplan, c/o school of comp sci, cmu, pittsburgh, pa 15213-3890
phone:	  (412) 268-6426

     a good engineer is a good thief.  bennet, thanks for the signature.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

INTERNET: caplan@cs.cmu.edu		  BITNET: caplan%cs.cmu.edu@cmuccvma

egc@CS.CMU.EDU (eddie caplan) (08/14/90)

    >In article <EGC.90Aug7112234@MEAT.PIE.CS.CMU.EDU> egc@CS.CMU.EDU (eddie caplan) writes:
    >   I would like to have the following widget structure:
    >
    > [...]
    >   That is, a panedWidget containing several boxWidgets, which in turn
    >   contain some number of commandWidgets and simpleMenus inside of them.


hi again.  i posted this message last week and have not heard a word.
is it possible that NOBODY has had ANY problems with menus inside of
constraint widgets?  please help me figure this one out.

anyone at the Athena project?

please?
--
usps:	  eddie caplan, c/o school of comp sci, cmu, pittsburgh, pa 15213-3890
phone:	  (412) 268-6426		  wit: good engineers are good thieves.
internet: caplan@cs.cmu.edu		  bitnet: caplan%cs.cmu.edu@cmuccvma
csnet:	  caplan%cs.cmu.edu@relay.cs.net  uucp:	  ...!seismo!cs.cmu.edu!caplan
--
usps:	  eddie caplan, c/o school of comp sci, cmu, pittsburgh, pa 15213-3890
phone:	  (412) 268-6426		  wit: good engineers are good thieves.
internet: caplan@cs.cmu.edu		  bitnet: caplan%cs.cmu.edu@cmuccvma
csnet:	  caplan%cs.cmu.edu@relay.cs.net  uucp:	  ...!seismo!cs.cmu.edu!caplan