[comp.windows.x.motif] multi-column menus in mwm?

montnaro@spyder.crd.ge.com (Skip Montanaro) (08/16/90)

Is there a way to define multi-column menus in mwm? Something that would
display like:

	    Moose       C2A       
	    Sierra      CRDGW1    
	    SC          Zephyrus  
	    Mobius      Durango   
	    HPX02       Neva      
	    Dwaskill    Milkweed  
	    Rigel       Karnack   
	    Hudson      Kreskin   

--
Skip (montanaro@crdgw1.ge.com)

nazgul@alphalpha.com (Kee Hinckley) (08/17/90)

> 
> Is there a way to define multi-column menus in mwm? Something that would
> display like:
You might try creating a pulldown, and then changing the number of columns
afterwords.  I don't know if it would work, but it's worth a try.

						-kee

Alphalpha Software, Inc.	|	motif-request@alphalpha.com
nazgul@alphalpha.com		|-----------------------------------
617/646-7703 (voice/fax)	|	Proline BBS: 617/641-3722

I'm not sure which upsets me more; that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

walt@DRD.Com (Walt Gaber) (08/21/90)

> Is there a way to define multi-column menus in mwm? Something that would
> display like:
> 
> 	    Moose       C2A       
> 	    Sierra      CRDGW1    
> 	    SC          Zephyrus  
> 	    Mobius      Durango   
> 	    HPX02       Neva      
> 	    Dwaskill    Milkweed  
> 	    Rigel       Karnack   
> 	    Hudson      Kreskin   

The mwm manual says that the "appearance of menus can be configured based
on the name of the menu."

The popup shell is named "menu" and the RowColumn widget is named according
to the entry in your .mwmrc file.  Therefore, if your .mwmrc contains:

Menu YourMenu
{
    "Moose"
    "Sierra"
    "SC"
    "Mobius"
    "HPX02"
    "Dwaskill"
    "Rigel"
    "Hudson"
    "C2A"
    "CRDGW1"
    "Zephyrus"
    "Durango"
    "Neva"
    "Milkweed"
    "Karnack"
    "Kreskin"
}

just add the following to your mwm resource file:

Mwm*menu*YourMenu*numColumns:      2
Mwm*menu*YourMenu*packing:         PACK_COLUMN
-- 
   Walt Gaber
   walt@DRD.Com                DRD Corporation
   uunet!apctrc!drd!walt       (918) 743-3013