Contents page

GetStringInfo()


    USAGE

        StringInfo = (struct StringInfo *) GetStringInfo(Window, GadetID)

    FUNCTION

        Returns a pointer to the StringInfo structure that belongs to the Gadget
        indicated by the gadget ID. If there is a non-system gadget in the window's
        gadget list with this ID,  and it is a gadget of type STRGADGET, a pointer to
        its StringInfo structure will be returned. If not, NULL is returned.
        This is usefull for getting access to StringInfo structures without having to
        have their names hard coded into the program.

    INPUTS

        Window    = Pointer to the window the StringInfo structure resides in.
        GadgetID  = Short integer ID of the gadget.

    RESULT

        StringInfo = Pointer to the requested StringInfo structure it exists, else
                     NULL

    SEE ALSO

        SetStringInfo