[comp.windows.x.motif] How does BulletinBoard handle default buttons?

db3l@ibm.com (David Bolen) (10/18/90)

I'm using a DrawingArea widget as the main widget for a window in my program,
but it has some PushButtons as children, and I would like to implement a
default PushButton similar to the way the BulletinBoard widget does.  I
don't want to switch to using the BulletinBoard widget since I do use Xlib
graphics functions in the DrawingArea, and I like the callbacks provided by
the DrawingArea as well as the lack of geometry management for child widgets.
I'm not very familiar with translations yet, but am guessing I'll need to add
my own translation for <Key>Return: to the child widgets, so that I can
get control and select the proper PushButton to activate.

Is there anyone who has already done something similar, or who could give
any suggestions as to the simplest way to accomplish this?

Thanks for any help.

-- David
--
/-----------------------------------------------------------------------\
 \                             David Bolen                             /
  |    Laboratory Automation, IBM Thomas J. Watson Research Center    |
 /              P.O. Box 218, Yorktown Heights, NY  10598              \
| - - - - - - - - - - - -  M i t h r a n d i r  - - - - - - - - - - - - |
| Internet : db3l@ibm.com                    | Bitnet : db3l@yktvmv     |
| Usenet   : uunet!bywater!arnor!larios!db3l | Phone  : (914) 945-1940  |
\-----------------------------------------------------------------------/