Datagrid question

Trevor DeVore lists at
Mon Jan 24 08:40:43 EST 2011

On Sat, Jan 22, 2011 at 4:21 PM, Peter Haworth <pete at>wrote:

> I've put together a mouseDown handler that displays a stack window
> immediately below a datagrid column when the user right clicks on that
> column.  Right now it's in the group script of the datagrid.

> The dg manual says there is a default header behavior property so set that
> to the id of a button that includes my mousedown handler since I want this
> to be available to all the dataggrids in my app but the mousedown event
> never reaches my mousedown handler a breakpoint set at the start of it never
> gets triggered.

The mouseDown message may not reach the data grid group in all cases. For
example, I know it is not passed during column resizing operations. You
should add the mouseDown message to the "default header behavior" if you
want to process it. This lesson shows how to customize the header behavior
in order to add tooltips. Just follow the instructions but add your
mouseDown handler rather than the tooltip code.

Trevor DeVore
Blue Mango Learning Systems
LiveCode Resources for Developers:

More information about the Use-livecode mailing list