Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!h.gp.cs.cmu.edu!egc From: egc@h.gp.cs.cmu.edu (eddie caplan) Newsgroups: comp.windows.x Subject: THIRD CALL FOR HELP: menus in composites Message-ID: <10318@pt.cs.cmu.edu> Date: 24 Aug 90 20:24:02 GMT Organization: Carnegie-Mellon University, CS/RI Lines: 68 Hi. This is the THIRD time I've posted this call for help. Is there nobody out there (even at MIT) that can help me? ____________________________________________________________________________ ---------------------------------------------------------------------------- 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 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. any suggestions? -- 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