ecere/gui/Window, ListBox: Fixed lockups related to clickThrough, crashes related...
authorJerome St-Louis <jerome@ecere.com>
Tue, 4 Jun 2013 13:59:31 +0000 (09:59 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 4 Jun 2013 13:59:31 +0000 (09:59 -0400)
commitcb31e1ad7d435d1fb437e3e7e780c462cae978f8
tree893ba97adb63c29431e1e6091cdcee34828db3d0
parente853a19fd919c5063e9c36b9b724fe004ab6fc9c
ecere/gui/Window, ListBox: Fixed lockups related to clickThrough, crashes related to List (#844, WSMS); Fixed ListBox::ClearFields crashes
- The WSMS issue was fixed in Window::GetAtPosition() and replacing the 'last.parent == this' check by last.IsDescendantOf(this)
- The sampleScrolling issue (nicktick's issue, trying to scroll with a right click with buttons within a grouping Window) had to do
   with both the buttons and the group being clickThrough, and at same level, resulting in alternating activation which would move
   windows around in the order). The fix was to set activate = false after performing an activation. The group should actually be
   marked as 'inactive' if the buttons do not have it set as a parent, to work around an otherwise alternate activation on a mouse click.
- Another issue was found in WSMS while testing with the timer: crashes due to clearing a ListBox fields without calling ListBox::Clear()
   first to clear the data. This has now been enforced in ClearFields(), and also fixed in WSMS.
ecere/src/gui/Window.ec
ecere/src/gui/controls/ListBox.ec