Typo/Bug in Widgets\BaseButton.cs?

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
staffel95
Just popping in
Just popping in
Posts: 7
Joined: Mon Feb 28, 2005 20:40

Typo/Bug in Widgets\BaseButton.cs?

Postby staffel95 » Wed Mar 23, 2005 18:47

Eddie/anybody,
in the eventhandler for capturing the mouse up of a button:

protected internal override void OnMouseButtonUp(MouseEventArgs e)
{
// default processing
base.OnMouseButtonDown (e);
if(e.Button == MouseButton.Left)
{
ReleaseInput();
// event was handled by us
e.Handled = true;
}
}

Shouldnt the first line in the function state
base.OnMouseButtonUp(e);
i.e. calling the overloaded function of the parent class ?

Staffel

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Typo/Bug in Widgets\BaseButton.cs?

Postby CrazyEddie » Thu Mar 24, 2005 09:22

Yes, this is incorrect. Nice find :)

CE.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 11 guests