Find the item a user clicked on...

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Nov 9 16:29:36 EST 2005


Hi Ton,

If I understand correctly:
Your headers are the first line of your field and not buttons or  
something else placed above the field?
If it's the case, you can:

1. Set the style of each header to "link"
2. Set the underlineLinks property of your stack to false
3. Set the different link colors in an appropriate way if needed

Then the kinks do not appear but do exist and you just need:

on linkClicked pLink
   <do whatever with pLink>
end linkClicked

pLink mirrors always the complete header.

Not sure that is exactly your problem ;-)

Best Regards from Paris,

Eric Chatonet.

Le 9 nov. 05 à 21:25, Ton Kuypers a écrit :

> I have a small problem, which probably someone has solved a long  
> time ago...
>
> I have a header above a field with columns of data.
> The amount of columns are different each time, the header above the  
> field will differ also each time.
>
> I now would like to sort the items in the field, when a user clicks  
> on one of the words in the header, but how do I know what item the  
> user clicked on?
> I only get the ClickChunk or the ClickText, but who has a clever  
> routine to get the item a user clicked on?
>
> The titles in the header are separated by tabs and can consist of  
> more then one word each.
>
> Any help is welcome :-)
>
>
> Warm regards,

----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the use-livecode mailing list