What is the LiveCode equivalent property for the HTML <a title="some hover text"> parameter?
J. Landman Gay
jacque at hyperactivesw.com
Tue Jul 5 12:11:51 EDT 2011
On 7/5/11 6: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? Best, Keith..
You can invent your own HTML tags (or use "linkTitle", which LiveCode
will believe is custom) and use those to detect if a tooltip should be
displayed. You'll have to track mousemove and then get the textstyle of
the mousetext. If it's your custom tag then display a tooltip.
Fortunately the mousetext grabs the whole link text as one "word" so you
don't need to do any text parsing to figure it out.
When changing tooltips in a field, you need to set the tooltip to empty
and then to the new one, otherwise it won't change.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list