hyperlinking from list fields

Monte Goulding monte at sweattechnologies.com
Thu Jul 3 00:57:01 EDT 2003


>
> Here's an idea that might do the trick :
> - create another field "on top" of the column with the
> email-addresses
> - set its threeD, showBorder and opaque to false
> - fill in the addresses, and set the textStyle to link
> for each line
> - you may have to tweak the margins of the field a bit
> to have it overlay "just right"
> - now we have to make sure they scroll alongside, so
> add to the list field script
>   on scrollbarDrag
>     set the vScroll of fld "email-addresses" to \
>         the vScroll of me
>   end scrollbarDrag
> - last but not least, to prevent visual problems,
> we'll also need to adapt the colour scheme
>  . start by setting the properties linkColor,
> linkHiliteColor and linkVisitedColor of the stack to
> blue or another you like, as long as it's the same and
> works both for hilited and not-hilited lines
>  . if you want to go the extra mile, you could change
> the list field script again to update the textColor of
> the individual email-address field lines 'on
> selectionChanged' ; this means you'll also have to fix
> 'on mouseMove' and 'on rawKeyDown' so that they send a
> selectionChanged directly, rather than afterwards
> (mouseMove) or never (rawKeyDown)
>
> Hope this helped,
>
> Jan Schenkel.
>
Hi Jan

I guess that's an option but it seems a rather costly one for what should be
a simple situation. It may be better for me to use a checkbox list field for
line selection rather than the standard list field. I guess it would have
been a rather strange UI anyway.

Cheers

Monte





More information about the use-livecode mailing list