Datagrid mouseUps

tsj tsj at
Wed Jun 9 22:24:48 EDT 2010

On 10/06/10 12:06 PM, "Alex Adams" <alex at> wrote:

> I have a number of datagrids that behave in a way that is not intended and
> I¹m curious if there is a simple way to solve the problem.
> I have a mouseUp event the script of the datagrid.  It works well except
> that it is triggered even when there is click in a scroll bar.
> I¹m imagining that changing the row style from a table to a form that I can
> move the event to the behaviors?  I¹ll be making that change in the next
> version or so, but I¹d like to fix this the way it is first.

Hi Alex - how about just filtering out the elements you don't want?

on mouseUp
   put the short name of the target into tTarget
   switch tTarget
      case " dgAlternatingRows"
      case [other things I don't want triggering my code]
         exit mouseUp
         -- do mouseUp stuff
   end switch
end mouseUp


> Any ideas?
> Thanks in advance,

More information about the Use-livecode mailing list