Page 1 of 1

DataGrid Form ToolTip - per row

Posted: Sat Feb 20, 2016 9:58 pm
by newpie
Hello, is there a way to set individualized tooltips on graphics in a datagrid form array?

Example:
1. My database call retrieves the following information:
Cat,Fluffy,SouthEast
Dog,Spot,NorthEast

2. My Datagrid Form Template has a graphic button of a map

3. If you hover over the graphic button in the row of Fluffy it will display the tooltip SouthEast /
If you hover over the graphic button in the row of Spot it will display the tooltip NorthEast

I found this post, but it applies to entire datagrid object:
http://forums.livecode.com/viewtopic.php?f=7&t=9432

Code: Select all

set the tooltip of graphic "dgAlternatingRows" of group "Datagrid 1" to "hahaha"
[/quote]

Thanks for any assistance.

Re: DataGrid Form ToolTip - per row

Posted: Sun Feb 21, 2016 4:23 am
by quailcreek
Try something like this in the behavior of the DG. Untested...

Code: Select all

set the toolTip of grc "location" of me to  pDataArray["location"]

Re: DataGrid Form ToolTip - per row

Posted: Fri Feb 26, 2016 4:13 am
by newpie
Thanks quailcreek I will try that out.