Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!apollo!apollo.hp.com!kumorek From: kumorek@apollo.HP.COM (James Kumorek) Newsgroups: comp.windows.x.motif Subject: Re: accelarators. How to? Message-ID: <4ce2bde4.20b6d@apollo.HP.COM> Date: 18 Sep 90 17:43:00 GMT References: <22@srg.UUCP> Sender: root@apollo.HP.COM Reply-To: kumorek@apollo.HP.COM (James Kumorek) Organization: Hewlett-Packard Apollo Division - Chelmsford, MA Lines: 21 In article <22@srg.UUCP>, lyons@srg.UUCP (Don R. Lyons x4811) writes: |> Salutation netlanders: |> |> |> I have an menubar in an MainWindow. I would like to add accelarators to |> the children on the menus. I am using CascadeButtonWidgets as children. |> |> Does the following seem unreasonable? |> |> XtSetArg( argList[n], XmNaccelerator, "Altt"); n++; |> XtCreateWidget( name, xmCascadeButtonWidgetClass, menu, argList, n); |> |> Do I have to do an XtAddEventHandler? What else is there? |> |> Any help will be appreciated. Try "Metat", then use Alt-t when actually running the application. Jim Kumorek Apollo Computer, Inc. - A subsidiary of Hewlett Packard kumorek@apollo.hp.com