Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!egc From: egc@CS.CMU.EDU (eddie caplan) Newsgroups: comp.windows.x Subject: menus in composite and constraint widgets Message-ID: Date: 7 Aug 90 15:22:34 GMT Distribution: comp Organization: School of Computer Science, Carnegie Mellon University Lines: 78 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 (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