[comp.windows.x] another possibly-boneheaded question

vix@ubvax.UB.Com (Paul Vixie) (03/24/88)

I'd like to use Forms full of vertically-glued Commands for a menu system.
As a Command is selected in each menu, another menu needs to appear to the
right of that menu.  I was thinking of putting all the menus (each a Vpane
actually) into a Form, gluing the Vpanes together horizontally in their Form.

So in the Command callback on the outermost (leftmost) menu, I create a
Vpane using the outer Form as its parent; I create lots of subwidgets in
this Vpane to make it look like a menu; what do I do then?  I tried calling
XtRealizeWidget with the shell widget (from XtInitialize), and I tried
calling XtRealizeWidget with the Vpane I just added to the outermost Form.
XtRealizeWidget did nothing in either case -- but when the Command callback
returns, I get a "server protocol error detected".

So, how do I go about adding an item to an existing (mapped, managed, etc)
Form?  Can it be done?  Which FM should I R?

BTW, the Widget structure I'm trying to use is:

	----------
	Shell (from XtInitialize)
		Form (subwidgets glued horizontally)
			Vpane
				Label
				Form (vertical glue)
					Command
					Command
					...
			Vpane
				Label
				Form (vertical glue)
					Command
					Command
					...
	----------

It's when I try to add that second vertically-glued Form that I'm lost.
-- 
Paul Vixie
Consultant        Work: 408-562-7798    vix@ub.com    vix%ubvax@uunet.uu.net
Ungermann-Bass    Home: 415-647-7023    {amdahl,ptsfa,pyramid,uunet}!ubvax!vix
Santa Clara, CA              <<I do not speak for Ungermann-Bass>>

kit@athena.mit.edu (Chris D. Peterson) (03/25/88)

I wrote two programs that were included on the X11R2 Tape that make
use of the Xtoolkit, Xman and Xmore.

These were written to provide a source code reference on programming
the Xtoolkit.  I tried to exercise the Xtookit in ways that Xmh does not
to allow a broader base of examples.  

Xman is the only program that I know of that I know of that uses:

Menus	
PopupWidgets   
Multiple Application Shell Widgets
Instanciated Core Widgets,
Application Speciefic Widget
	.
	.
	.

Take a look at contrib/xman.  

						Chris Peterson     
						Project Athena     
						Systems Development

Net:	kit@athena.mit.edu		
Phone: (617) 253 - 1326			
USMail: MIT - Room E40-342C		
	77 Massachusetts Ave.		
	Cambridge, MA 02139		

DISCLAIMER:  It's not my bosses fault.