#4084 "JS events: Mac form element events"

This commit is contained in:
pierre%netscape.com 1999-06-16 00:40:20 +00:00
parent 4824d684b1
commit 5c9b83c219
2 changed files with 13 additions and 0 deletions

View File

@ -49,6 +49,8 @@ nsMacControl::nsMacControl() : nsWindow()
mLastBounds.SetRect(0,0,0,0);
mLastValue = 0;
mLastHilite = 0;
AcceptFocusOnClick(PR_FALSE);
}
/**-------------------------------------------------------------------------
@ -252,6 +254,16 @@ void nsMacControl::ControlChanged(PRInt32 aNewValue)
//
//
//-------------------------------------------------------------------------
NS_IMETHODIMP nsMacControl::Enable(PRBool bState)
{
Inherited::Enable(bState);
Invalidate(PR_FALSE);
return NS_OK;
}
//-------------------------------------------------------------------------
//
//
//-------------------------------------------------------------------------
NS_IMETHODIMP nsMacControl::Show(PRBool bState)
{
Inherited::Show(bState);

View File

@ -47,6 +47,7 @@ public:
virtual PRBool DispatchMouseEvent(nsMouseEvent &aEvent);
// nsIWidget interface
NS_IMETHOD Enable(PRBool bState);
NS_IMETHOD Show(PRBool aState);
NS_IMETHODIMP SetFont(const nsFont &aFont);