Back

DupeKnobList()




    USAGE

    Knob = (struct Knob *) DupeKnobList(KnobList)

    FUNCTION

    This makes a copy of the supplied knob list. Knob structures are allocated and copied into.

    The purpose of this routine is to provide a method for generating multiple copies of the same window, so they can run concurrently.

    To do this, create your static Knob list. Dupe it with this routine. Stick the duplicate copy in a new window. You might create a seperate task that operates that window. Dupe the knob list again and create another task that opens another window. Although identical copies of the same window will exist on the screen, mucking with one set of knobs can not effect the other ones.
    When each task is done, it closes its window, then returns the knob list with a call to DeleteKnobList.

    Note that now you are generating Knobs dynamically, you will need to use GetKnob if you wish to access a particular knob.

    INPUTS

    KnobList = Pointer to a list of knobs to copy.

    RESULT

    returns a pointer to the copied list, or NULL if it ran out of memory.

    SEE ALSO

    DeleteKnobList, GetKnob