put the text of the target into tS
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Wed Apr 6 05:16:56 EDT 2005
Hi Sims,
Le 6 avr. 05, 09:59, sims a crit :
> I'm using the following is a card script to have Rev speak text, works
> fine unless the target is a Check Box btn.
>
> How can I add Check Box btns to the items that get read?
>
> on mouseEnter
> put the text of the target into tS
> if tS is not empty then
> revSpeak tS
> end if
> end mouseEnter
Here is a draft for managing sound tooltips (place it in the card
script):
local lAllowSoundTooltip
------------------------------------
on mouseEnter
put true into lAllowSoundTooltip
send "SayIt" to the target in the tooltipdelay millisecs -- Æ
end mouseEnter
------------------------------------
on mouseDown
StopSayIt -- Æ
end mouseDown
------------------------------------
on mouseLeave
StopSayIt -- Æ
end mouseLeave
------------------------------------
on mouseRelease
StopSayIt -- Æ
end mouseRelease
------------------------------------
on SayIt
local tS
-----
if not lAllowSoundTooltip then exit SayIt
put the mouseLoc into tLoc
wait 100 milliseconds with messages
if the mouseLoc = tLoc then
switch
case "field" is in the target
put target into tS
break
default
put the short name of the target into tS
end switch
put false into lAllowSoundTooltip
revSpeak tS
end if
end SayIt
------------------------------------
on StopSayIt
revStopSpeech
put false into lAllowSoundTooltip
end StopSayIt
Far from perfect but can help :-)
Eric Chatonet.
----------------------------------------------------------------
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
----------------------------------------------------------------
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