What is the LiveCode equivalent property for the HTML <a title="some hover text"> parameter?

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Tue Jul 5 10:07:37 EDT 2011


Thanks for the steer Jim. Just to be clear, I'm not looking for HTML compatibility - I was using the <a> link description as an analogy to describe the required behaviour. It's the effect of a tooltip on text within a field that I want to create (and it's good to know that this is not a standard thing that I have simply overlooked). 

I've tried the message watcher but there don't seem to be any messages generated when the mouse traverses a change in textStyle - i.e. the cursor doesn't change to a finger when over a link. I hadn't really noticed this before but it seems strange as the default behaviour. Is there maybe a property switch to enable more orthodox cursor behaviour when over links in text?

BTW Here's some background on the title parameter for the a link tag http://www.w3schools.com/TAGS/att_standard_title.asp It's very useful if you want to provide informative link information, rather than some ugly link URL. (Of course, it's also a mechanism exploited by those who would hide the link's true destination!) 
Best,
Keith..

On 5 Jul 2011, at 12:59, Jim Ault wrote:

> On Jul 5, 2011, at 4:41 AM, Keith Clarke wrote:
>> Hi folks,
>> Trying to replicate HTML <a> links within a LiveCode field. The docs describe 'set the textStyle to link' to create the link <a/> tag itself and 'set the linktext to <uri>' provides the 'href' parameter.
>> 
>> But is there an equivalent of the HTML link title parameter at the field/text level? There doesn't seem to be a linkTitle property - and Tooltip is an object-level property.
>> 
>> Indeed, are mouse-hover tooltips within a field supported as a native feature?
> 
> This topic comes up on the list once in a while.
> Don't confuse HTML and the htmlText as being equivalent.
> The htmlText is a subset of tags that mainly relate to formatting and linking.  These are not robust or complete.  You might search the archives for threads that dealt with these limitations.
> 
> I can't find and don't recall ever seeing and hover link or tooltip inside a field in either Hypercard, Supercard, Metacard, Rev, or Livecode.  If you want text displays that are compliant, the RevBrowser is the tool to use.
> 
> By the way, i don't recall ever seeing
>    <a title="some hover text">
> so it is nice to pick up a new trick :-)





More information about the use-livecode mailing list