Back

GetKnob()




    USAGE

    Knob = (struct Knob *) GetKnob(KnobList, KnobID)

    FUNCTION

    Returns a pointer to the knob requested with the knob ID. If there is no such knob, NULL is returned.

    This is useful for getting acces to knobs without having to have pointers to all of them stored, or having their names hard coded into the program.

    If the knobs are dynamically allocated with DupeKnobList, this is particularily useful.

    INPUTS

    KnobList = Pointer to list of Knobs in the window
    KnobID = Short integer ID of the requested knob.

    RESULT

    Returns a pointer to the requested Knob, NULL if it doesn't exist.

    SEE ALSO

    DupeKnobList, DeleteKnobList