lyons@srg.UUCP (Don R. Lyons x4811) (09/18/90)
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, "Alt<Key>t"); n++; XtCreateWidget( name, xmCascadeButtonWidgetClass, menu, argList, n); Do I have to do an XtAddEventHandler? What else is there? Any help will be appreciated. -don -- Don R Lyons Any opinions expressed are my own. Arinc Research Inc uucp : uunet!cdss!lyons SRG, Mail Stop 5230 voice: 301 266 4811 2551 Riva Road Annapolis , MD 21401 fax : 301 266 2047
kumorek@apollo.HP.COM (James Kumorek) (09/19/90)
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, "Alt<Key>t"); n++; |> XtCreateWidget( name, xmCascadeButtonWidgetClass, menu, argList, n); |> |> Do I have to do an XtAddEventHandler? What else is there? |> |> Any help will be appreciated. Try "Meta<Key>t", then use Alt-t when actually running the application. Jim Kumorek Apollo Computer, Inc. - A subsidiary of Hewlett Packard kumorek@apollo.hp.com