From: <wel...@us...> - 2010-11-01 22:07:57
|
Revision: 6334 http://planeshift.svn.sourceforge.net/planeshift/?rev=6334&view=rev Author: weltall2 Date: 2010-11-01 22:07:51 +0000 (Mon, 01 Nov 2010) Log Message: ----------- added left right support in tree Modified Paths: -------------- trunk/src/common/paws/pawslistbox.cpp trunk/src/common/paws/pawstree.cpp Modified: trunk/src/common/paws/pawslistbox.cpp =================================================================== --- trunk/src/common/paws/pawslistbox.cpp 2010-11-01 22:05:35 UTC (rev 6333) +++ trunk/src/common/paws/pawslistbox.cpp 2010-11-01 22:07:51 UTC (rev 6334) @@ -835,13 +835,13 @@ if (button == csmbHWheelLeft) { if (horzscrollBar) - horzscrollBar->SetCurrentValue(scrollBar->GetCurrentValue() - LISTBOX_MOUSE_SCROLL_AMOUNT); + horzscrollBar->SetCurrentValue(horzscrollBar->GetCurrentValue() - LISTBOX_MOUSE_SCROLL_AMOUNT); return true; } else if (button == csmbHWheelRight) { if (horzscrollBar) - horzscrollBar->SetCurrentValue(scrollBar->GetCurrentValue() + LISTBOX_MOUSE_SCROLL_AMOUNT); + horzscrollBar->SetCurrentValue(horzscrollBar->GetCurrentValue() + LISTBOX_MOUSE_SCROLL_AMOUNT); return true; } else if (!selectable) Modified: trunk/src/common/paws/pawstree.cpp =================================================================== --- trunk/src/common/paws/pawstree.cpp 2010-11-01 22:05:35 UTC (rev 6333) +++ trunk/src/common/paws/pawstree.cpp 2010-11-01 22:07:51 UTC (rev 6334) @@ -1160,6 +1160,18 @@ vertScrollBar->SetCurrentValue(vertScrollBar->GetCurrentValue() + TREE_MOUSE_SCROLL_AMOUNT); return true; } + if (button == csmbHWheelLeft) + { + if (horizScrollBar) + horizScrollBar->SetCurrentValue(horizScrollBar->GetCurrentValue() - TREE_MOUSE_SCROLL_AMOUNT); + return true; + } + else if (button == csmbHWheelRight) + { + if (horizScrollBar) + horizScrollBar->SetCurrentValue(horizScrollBar->GetCurrentValue() + TREE_MOUSE_SCROLL_AMOUNT); + return true; + } else { pawsTreeNode *node = NULL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |