Path: utzoo!attcan!uunet!bu.edu!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!apollo!apollo.hp.com!kumorek From: kumorek@apollo.HP.COM (James Kumorek) Newsgroups: comp.windows.x.motif Subject: Re: Menu Bars Message-ID: <4df75675.20b6d@apollo.HP.COM> Date: 12 Nov 90 17:41:00 GMT References: <1990Nov9.223934@eos.ncsu.edu> Sender: root@apollo.HP.COM Reply-To: kumorek@apollo.HP.COM (James Kumorek) Organization: Hewlett-Packard Apollo Division - Chelmsford, MA Lines: 24 In article <1990Nov9.223934@eos.ncsu.edu>, ltlovett@eos.ncsu.edu (LANCE TIMOTHY LOVETTE) writes: |> |> I created a menu bar with XmCreateMenuBar. On the bar I put a cascade |> button to drop a pull down menu. My problem is I want to have an 'about' |> PushButtonWidget on the bar so that when pressed it pops up a dialog box. |> The program compiles and will run like I want, no problems, except for when |> it first runs I get the message: |> |> X Toolkit Warning: |> Name: menu_bar |> Class: XmRowColumn |> Attempt to add wrong type child to a homogeneous RowColumn widget |> Menu bars require that all the children of the menu bar be the same 'type' of widget (or gadget). To get around this problem, use a cascade button or gadget for the button that will invoke the dialog box; just don't set the subMenuId resource. It should then act just like a push button. Jim Kumorek Apollo Computer, Inc. - A subsidiary of Hewlett Packard kumorek@apollo.hp.com