Hello
I need to get the user's attention sometimes.
Is there a way to implement the jumping dock icon to my Runtime application in OSX?
Thanks
Andres
Jumping Icon
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi andres,
I'm afraid this is not possible with the built-in capabilities.
But you could eventually change the dock icon (temporarily) to get the users attention!
This is an currently unsupported feature, but does work fine so far
From the "What's new" file:
########################
Currently Unsupported Features
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
These features have been added to support IDE functionality but are not presently supported for use in user applications. This means that you may use them but their functionality and semantics are subject to change. Also, bugs should not be reported against them when used in user scripts.
the icon
~~~~~~~~
You can set and get 'the icon' as a global property allowing control over a status-tray icon (on Windows) and the image on the dock (on MacOS X). If the property is set to 0, the status-tray icon is removed (on Windows) or the image reset to default (on MacOS X). Setting it to a non-zero integer will display the specified image with that id in the dock, or as a status-tray icon.
...
##########################
Hope that helps.
Best
Klaus
I'm afraid this is not possible with the built-in capabilities.
But you could eventually change the dock icon (temporarily) to get the users attention!
This is an currently unsupported feature, but does work fine so far
From the "What's new" file:
########################
Currently Unsupported Features
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
These features have been added to support IDE functionality but are not presently supported for use in user applications. This means that you may use them but their functionality and semantics are subject to change. Also, bugs should not be reported against them when used in user scripts.
the icon
~~~~~~~~
You can set and get 'the icon' as a global property allowing control over a status-tray icon (on Windows) and the image on the dock (on MacOS X). If the property is set to 0, the status-tray icon is removed (on Windows) or the image reset to default (on MacOS X). Setting it to a non-zero integer will display the specified image with that id in the dock, or as a status-tray icon.
...
##########################
Hope that helps.
Best
Klaus
Andres,
From the built-in docs for the icon property:
Mark
From the built-in docs for the icon property:
Best,Syntax:
set the icon to {imageID | imageName}
set the icon of {button | stack} to {imageID | imageName}
Example:
set the icon of this stack to 974
set the icon of button "Help" to "Question Mark"
set the icon to the myAppIcon of stack "Main Settings"
Summary:
Specifies an image that is displayed in a button, or used as the desktop icon of a stack file or application.
Description:
Use the icon property to change a button's appearance, or to set the icon used for a stack or application in the OS X dock.
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode