ET++: Stepping through a left mouse click in a button
When a CompositeVObject gets an event, this is called on all its children
from VObject::DispatchEvents().
This calls VObject::DispatchEvents()
on the child, recursively decending the enclosure hierarchy.
Command *VObject::Input(Point lp, Token &t, Clipper *vf)
{
if (t.IsKey() || t.IsFunctionKey() || t.IsCursorKey() || ContainsPoint(lp)) {
if (Enabled()) {
if (TestFlag(eVObjKbdFocus) && t.Code == eEvtLeftButton
&& !(t.Flags & eFlgButDown)) {
GetWindow()->SetFirstHandler(this);
}
return DispatchEvents(lp, t, vf);
}
return gNoChanges;
}
return 0;
}
Back to the method call sequence