Bug 3322: NS_CONTROL_CHANGE events call ControlChanged on the form frame.

This commit is contained in:
pollmann%netscape.com 1999-05-28 01:05:19 +00:00
parent ff3c5ccf00
commit c43e4a93e8
4 changed files with 16 additions and 0 deletions

View File

@ -607,6 +607,9 @@ NS_METHOD nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext,
case NS_MOUSE_EXIT:
mLastMouseState = eMouseNone;
break;
case NS_CONTROL_CHANGE:
ControlChanged(&aPresContext);
break;
}
}

View File

@ -133,6 +133,11 @@ public:
*/
virtual void MouseClicked(nsIPresContext* aPresContext) {}
/**
* Respond to a control change (e.g. combo box close-up)
*/
virtual void ControlChanged(nsIPresContext* aPresContext) {}
/**
* Perform opertations after the widget associated with this frame has been
* created.

View File

@ -607,6 +607,9 @@ NS_METHOD nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext,
case NS_MOUSE_EXIT:
mLastMouseState = eMouseNone;
break;
case NS_CONTROL_CHANGE:
ControlChanged(&aPresContext);
break;
}
}

View File

@ -133,6 +133,11 @@ public:
*/
virtual void MouseClicked(nsIPresContext* aPresContext) {}
/**
* Respond to a control change (e.g. combo box close-up)
*/
virtual void ControlChanged(nsIPresContext* aPresContext) {}
/**
* Perform opertations after the widget associated with this frame has been
* created.