Identifying objects by their tooltips
Marielle Lange
mlange at lexicall.org
Wed Nov 23 05:22:26 EST 2005
Dear Richmond,
To avoid the block of colour, wouldn't it be possible to add initial
of final letters to the object name rather than use the tooltip?
Another get around may be to produce a list of all pictures which are
supposed to react to the action, with a comma as separator, and then
add a test line:
if the name of me is among the items of lstOfWhatYoufancy then do
WHAT YOU FANCY
Best,
Marielle
> So I am working on some EFL programs for very young
> children and ended up with a lots of drag and drop images -
> now I could spend lines and lines of code of the sort:
>
> if the name of it is "COW.gif" then do TIDDLEY POM
>
> identifying each image individually - tedious, memory
> hungry and inefficient.
>
> Now I may have reinvented the wheel - notwithstanding this
> might be a happy trick to share with the 'basic educational
> stack' crowd to which I proudly belong:
>
> if you have a class of objects to be dragged and dropped
> (or somesuch) set the tooltip of all of them to some
> 'invisible' text such as 3 spaces and then use the
> following:
>
> if the tooltip of it is " " then do WHAT YOU FANCY
>
> Now, my next problem is to turn off tooltips so that they
> don't produce blocks of colour under my cursor!
>
> sincerely, Richmond Mathewson
>
------------------------------------------------------------------------
--------
Marielle Lange (PhD), Psycholinguist
Alternative emails: mlange at blueyonder.co.uk, M.Lange at ed.ac.uk
Homepage
http://homepages.lexicall.org/mlange/
Easy access to lexical databases http://lexicall.org
Supporting Education Technologists http://
revolution.lexicall.org
More information about the use-livecode
mailing list