[comp.windows.x.motif] A couple trivial question

nazgul@alphalpha.com (Kee Hinckley) (11/08/90)

1)  Cut/Copy/Paste

I'd like to set up a standard set of Edit menu items that work in
all of my text widgets.  Has anyone done this?
There are some nice new functions at 1.1 called XmText[Cut|Copy|Paste].
These take a text widget and do the clipboard work that you'd like.
I thought of using these, but the only way I can think of getting
the text widget is to use focus callbacks, and I don't want to do
that on every single text widget in my application.  What's the
best way to do this, and does anyone have some code to make
it work?

2)  Focus in SelectionDialogs

SelectionDialogs always give focus to the Okay button, even
if they have a managed input text area.  I've reported this as
a bug (why would you create a dialog which always requires the
user to press shift-TAB before they can do anything?) but have
received some debate.  So I want to make a call so that whenever
I manage a selection dialog it gives focus to the text widget.
I tried using XmProcessTraversal to do this, but it doesn't work.
What's the right way?

				-kee