Back

GetStringInfo()




    USAGE

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

    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 neames 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 = the requested StringInfo structure, if exists, else NULL. SEE ALSO

    SetStringInfo