data grid - header sorting (fix)
Shao Sean
shaosean at wehostmacs.com
Sat May 2 20:09:14 EDT 2009
Sorting when clicking a header should happen on mouseUp not
mouseDown, so you just need to modify the code in
stack "revDataGridLibrary", card 1, button "Default Header"
In the "mouseDown" handler, comment out the line
"_HeaderToggleSortOfColumn"
Add:
on mouseUp pMouseBtnNum
if pMouseBtnNum is 1 then
## Change the sort of the column
## _HeaderToggleSortOfColumn is a helper that resizes in the
parent group script.
## It toggles the sort of the column based on current state of
column.
_HeaderToggleSortOfColumn the dgColumn of me
end if
end mouseUp
Save and now all your data grids function correctly :)
BugZilla ID 8021
http://quality.runrev.com/qacenter/show_bug.cgi?id=8021
More information about the use-livecode
mailing list