Dock icon - data update

Klaus Major klaus at major-k.de
Mon Feb 20 05:18:51 EST 2006


Hi Mark and Jaque,

> Jacque-
>
>> Yes, you should be able to do it. Revolution has a global property
>> called the "icon" which, if set, specifies the icon that is  
>> displayed in
>> the OS X dock. You could write a script that takes a snapshot of a  
>> small
>> image containing the text you want to show, and then set the icon  
>> to the
>> id of that image. If you do this repeatedly using a "send in <time>"
>> structure, the icon would update dynamically.
>
> !!!

and what is the correct syntax for this?

OS X, Rev 2.7, small image (32*32) with ID 1005,
which is on the card with the button!

I tried:

on mouseup
   set the icon to 1005
end mouseup

Error:
Type Can't find object
Object Button
Line set the icon to 1005
Hint 1005

on mouseup
   set icon to 1005
end mouseup

Error:
Type Can't find object
Object Button
Line set icon to 1005
Hint 1005

Next guess, since the docs state this is a global variable:

on mouseup
   global icon
   set icon to 1005
end mouseup

Error:
Type global: not a valid variable name
Object Button
Line global icon
Hint icon


Am I missing something obvious?
Does this only work in standalones
and not in the Rev IDE?

Any hints are very appreciated :-)


> -Mark Wieder
>   mwieder at ahsoftware.net

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list