KnobGadgets()
USAGE
Knob = (struct Knob *) KnobGadgets(Window, KnobList)
FUNCTION
This is the big one with knobs. This is passed a list of knobs and the window
they are in. KnobGadgets searches the list of knobs to see if the mouse is
currently in any of the knobs. If so, that knob is processed accordingly and
a pointer to that knob is returned when the user lets up on the mouse button.
To use this, first create your knob list and install it in your window with
DrawKnobs. Make shure you have enabled MOUSEBUTTONS in your NewWindow
structure. When you receive a MOUSEBUTTON event and the Code is SELECTDOWN,
this indicates the user has clicked the left button down somewhere in your
window. Call KnobGadgets. If the mouse has clicked on a Knob, it will return
when the mouse has been released. If not, it will return immediately, so you
can go ahead and process it some other way, if need be.
INPUTS
Window = Pointer to the window the knobs reside in.
KnobList = List of Knob structures.
RESULT
Knob = Pointer to a Knob if it hit one, NULL if it didn't.
SEE ALSO
DupeKnobList, DeleteKnobList, GetKnob, DrawKnobs, DrawArrow