XmTextGetSource(3X)

XmTextGetSource --A Text function that accesses the source of the widget

As shipped in IRIX 6.5.15. Unchanged since IRIX 6.5.

NAME
     XmTextGetSource --A Text function that accesses the source of the widget

SYNOPSIS
     #include <Xm/Text.h>

     XmTextSource XmTextGetSource (widget)
          Widget    widget;


VERSION
     This page documents version 1.2 of the Motif library.

DESCRIPTION
     XmTextGetSource  accesses  the source of the Text widget.  Text widgets can
     share sources of text so that editing in one widget  is  reflected  in  an-
     other.   This  function accesses the source of one widget so that it can be
     made the source of another widget, using the function XmTextSetSource(3X).

     Setting a new text source destroys the old text source  if  no  other  Text
     widgets  are  using  that source.  To replace a text source but keep it for
     later use, create an unmanaged Text widget and set its source to  the  text
     source you want to keep.


     widget Specifies the Text widget ID


     For  a  complete  definition  of Text and its associated resources, see Xm-
     Text(3X).

RETURN VALUE
     Returns an XmTextSource value that represents the source of the  Text  wid-
     get.

RELATED INFORMATION
     XmText(3X).

                                                             XmTextGetSource(3X)