Message order of mouseUp and mouseDoubleUp

Bill Vlahos bvlahos at
Mon Jun 4 13:38:11 EDT 2012


In the just released beta of lcTaskList I have an action that if the user clicks on the header it does a sort by that column. If they double-click on the header then I want it to auto-resize the column like you can do in Excel. The problem is that there are both mouseUp and mouseDoubleUp handlers in the script and it does both the resize and sort when the user only wants to resize.

After just checking the way Excel does it I had it wrong. If you double-click on the column divider it resizes the column. I can implement that.

Bill Vlahos

On Jun 4, 2012, at 9:34 AM, Bob Sneidar wrote:

> Are you handling MouseUp somewhere else in the message path? If not, then just let it pass. 
> Bob
> On Jun 3, 2012, at 7:40 PM, Bill Vlahos wrote:
>> I have a button that has handlers for mouseUp and mouseDoubleUp. If the user double clicks the button the mouseUp always gets handled before the mouseDoubleUp.
>> How can I prevent that? If the user double clicks I only want the mouseDoubleUp message to be sent or at least be sent before the mouseUp.

More information about the Use-livecode mailing list