Fixed scrollbar scrolling event dispatch.

Wasn't scrolling because OnScroll was not declared virtual in nsWindow.h.
This commit is contained in:
kmcclusk%netscape.com 1998-09-17 00:49:03 +00:00
parent dd5d333ce3
commit 233c9cb96e
3 changed files with 4 additions and 2 deletions

View File

@ -1339,6 +1339,7 @@ PRBool nsWindow::DispatchFocus(nsGUIEvent &aEvent)
PRBool nsWindow::OnScroll(nsScrollbarEvent & aEvent, PRUint32 cPos)
{
printf("IN NSWINDOW ON SCROLL\n");
return FALSE;
}

View File

@ -134,7 +134,7 @@ public:
void OnDestroy();
PRBool OnKey(PRUint32 aEventType, PRUint32 aKeyCode, nsKeyEvent* aEvent);
PRBool DispatchFocus(nsGUIEvent &aEvent);
PRBool OnScroll(nsScrollbarEvent & aEvent, PRUint32 cPos);
virtual PRBool OnScroll(nsScrollbarEvent & aEvent, PRUint32 cPos);
void SetIgnoreResize(PRBool aIgnore);
PRBool IgnoreResize();
PRUint32 GetYCoord(PRUint32 aNewY);

View File

@ -454,7 +454,8 @@ void nsXtWidget_RadioButton_DisArmCallback(Widget w, XtPointer p, XtPointer call
void nsXtWidget_Scrollbar_Callback(Widget w, XtPointer p, XtPointer call_data)
{
nsWindow * widgetWindow = (nsWindow *) p ;
if (DBG) fprintf(stderr, "***************** nsXtWidget_Scrollbar_Callback\n");
// if (DBG) fprintf(stderr, "***************** nsXtWidget_Scrollbar_Callback\n");
printf("***************** nsXtWidget_Scrollbar_Callback\n");
nsScrollbarEvent sevent;