From: <ral...@us...> - 2013-11-13 01:10:32
|
Revision: 8971 http://sourceforge.net/p/planeshift/code/8971 Author: ralphcampbell Date: 2013-11-13 01:10:28 +0000 (Wed, 13 Nov 2013) Log Message: ----------- Fix bug 2097 - Can't select in the quest reward window by clicking the icons. Modified Paths: -------------- trunk/src/common/paws/pawslistbox.cpp trunk/src/common/paws/pawslistbox.h Modified: trunk/src/common/paws/pawslistbox.cpp =================================================================== --- trunk/src/common/paws/pawslistbox.cpp 2013-11-12 20:58:13 UTC (rev 8970) +++ trunk/src/common/paws/pawslistbox.cpp 2013-11-13 01:10:28 UTC (rev 8971) @@ -1479,6 +1479,16 @@ return parentBox->Select( this ); } +bool pawsListBoxRow::OnButtonPressed(int button, int modifiers, pawsWidget* widget) +{ + // Heading rows are not clickable or selectable + if (isHeading) + return true; + + pawsListBox* parentBox = (pawsListBox*)parent; + return parentBox->Select(this); +} + bool pawsListBoxRow::OnDoubleClick(int button, int /*modifiers*/, int /*x*/, int /*y*/) { // Heading rows are not clickable or selectable Modified: trunk/src/common/paws/pawslistbox.h =================================================================== --- trunk/src/common/paws/pawslistbox.h 2013-11-12 20:58:13 UTC (rev 8970) +++ trunk/src/common/paws/pawslistbox.h 2013-11-13 01:10:28 UTC (rev 8971) @@ -100,6 +100,9 @@ /// A single mouse click (left button) highlights the row bool OnMouseDown(int button, int modifiers, int x, int y ); + /// A single mouse click (left button) highlights the row + bool OnButtonPressed(int button, int modifiers, pawsWidget* widget); + /// A double click selects the row. bool OnDoubleClick(int button, int modifiers, int x, int y); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |