[comp.windows.x] Yes/No dialog box

emuleomo@paul.rutgers.edu (Emuleomo) (03/06/91)

Hi Xworl,
	I have a questionDialog box that prompts the user to answer Yes or No
	to a question.
	Currently, I can use the mouse to click on one of the pushbuttons to 
	indicate my response.
	I was wondering if it will be possible to

	A) Type 'Y' to activate the "Yes" pushbutton and 'N' to activate the "NO"
		pushbutton

		OR

	B) Use the cursor key to choose a non-default pushbutton, and hit <RETURN>
		to activate that pushbutton.

-Email will be mucho appreciated.
 ThanX

--Emuleomo O.O. (emuleomo@yes.rutgers.edu)
-- 
Remember! It doesn't matter if you win or lose, as long as you win!

gildea@expo.lcs.mit.EDU (Stephen Gildea) (03/07/91)

You can use translations to bind keys (e.g., y and n) to actions that
exit your dialog with the option you want.  Look at the man page for
questionDialog to get the name of the actions that activate the "Yes"
and "No" options.

Hint to people asking questions about widgets: it helps a lot if you
specify in your message what widget set you are using.

 < Stephen
   MIT X Consortium