Datagrid Forms with clickable image?

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
BaaBUSKrNB
Posts: 2
Joined: Mon Apr 16, 2012 5:28 pm

Datagrid Forms with clickable image?

Post by BaaBUSKrNB » Tue Jul 10, 2012 9:12 pm

Hi all,

Quite new to this powerful IDE, and having "fun" figuring it out...

Now,


I am doing a list of places app and have figured after watching hours of tutorials that Data Grid is the way to go. I have gotten the Data Grid populated and all is good.

But I want it to do two things:
1. When I press a row in the DG I want to come to a card with information about the place. No problem I can do this,
BUT...
2. In the datagrid list there is a Map-icon, when this is pressed one should get to google maps or similar with directions from present location the the location of the place. I got both coords, but how do I get the image of the DataGrid to perform differently than the rest of the row?

Thanks for any help, and hope it is doable :)

/Kristian

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Datagrid Forms with clickable image?

Post by Klaus » Tue Jul 10, 2012 9:20 pm

Hi Kristian,

1.wecome to the forum :)

2. Add a (mouseup) script (or behavior) to that image object in the "templategroup" of your datagrid!
That will "override" the datagrid behavior, when the user clicks the image in the datagrid.


Best

Klaus

Post Reply