Jumping Icon

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andres
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 68
Joined: Thu Jan 04, 2007 2:24 am

Jumping Icon

Post by andres » Fri Aug 24, 2007 3:31 am

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

Klaus
Posts: 13828
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Post by Klaus » Fri Aug 24, 2007 8:57 am

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

andres
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 68
Joined: Thu Jan 04, 2007 2:24 am

Post by andres » Fri Oct 05, 2007 5:12 am

Hello Klaus

How can I implement what you suggest ?

"change the dock icon (temporarily) to get the users attention"

Thanks
Andres

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Oct 05, 2007 8:25 am

Andres,

From the built-in docs for the icon property:
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.
Best,

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

Post Reply

Return to “Mac OS”