[comp.windows.x.motif] Cursors and XmStrings

hsd@raybed2.msd.ray.com (HERBERT DASILVA) (03/23/91)

  Greetings!

	I have two questions for the collective net wisdom to ponder.

  The first, what is the proper way to use XmStrings with respect to
allocation/deallocation.  When I do an XmStringCreate, then do an XtSetArg
to pass the string into some XtCreateWidget call, can the string then be
XmStringFree'd??  There is one such example in the Motif 1.1.1 Programmer's
Guide, but I have seen no other examples of this.

  The second question, is there any way to either:
Set the cursor so that it is the same regardless of what window it is in?
        or
Set the cursor so that any child of the window in which the cursor was set
also inherits the cursor?

  I have been successfull in using the standard X routines XDefineCursor
and XUndefineCursor, but it only applies to the specific window in which
it was set, and this significantly reduces its usefullness.

  FYI, I am running on a VAXstation (soon to be DECstation), X11R4, with
Motif 1.1.1

   My sincere thanks in advance for any pointers (or structures!).

	Herb DaSilva