hill@nicmad.UUCP (Ray Hill) (08/07/90)
I'm trying to create a keyboard driven MOTIF application and have into a couple problems with the different widgets. It seems that each widget type is manipulated differently and programmed differently. Widget Type Parent Widget Attribute Keyboard Usage ------------ ------------- -------------- -------------------------------- PushButton PulldownMenu XmNmnemonic press single key works while menu is active PushButton PulldownMenu XmNaccelerator press defined special key works while main window has focus PushButton MenuBar XmNmnemonic press META single key works while main window has focus OptionMenu RowColumn XmNmnemonic press single key works while main window has focus PushButton Form NONE WORK see TabGroup below ToggleButton Form NONE WORK see TabGroup below Text Form NONE WORK see TabGroup below TabGroup: For these widgets the program must call "XmAddTabGroup" on the widget's "Form" parent. Then the user can use the tab and arrow keys to move focus from one button or text to the next. QUESTIONS: ---------- 1. Is the above table correct? So whether or not a buttons attributes work or not depends on the widget's parent? 2. Assume a form widget contains both OptionMenu and Text widgets. How does the user enter the key 'a' into a text widget if 'a' is the mnemonic for a OptionMenu? 3. If the answer above is "mnemonics can't be entered into a text widget", then OptionMenu mnemonics are broken and I can't use them. Is there another keyboard option for OptionMenu widgets? (I can't get them to join a tab group) Thanks for your help. Ray Hill hill@nicmad