DataGrid Form ToolTip - per row

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

DataGrid Form ToolTip - per row

Post by newpie » Sat Feb 20, 2016 9:58 pm

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.

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: DataGrid Form ToolTip - per row

Post by quailcreek » Sun Feb 21, 2016 4:23 am

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"]
Tom
MacBook Pro OS Mojave 10.14

newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

Re: DataGrid Form ToolTip - per row

Post by newpie » Fri Feb 26, 2016 4:13 am

Thanks quailcreek I will try that out.

Post Reply