Status Tray?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
ChristopherBodell
Posts: 52
Joined: Sun Jan 20, 2008 7:06 am

Status Tray?

Post by ChristopherBodell »

Does anyone know how to set up the status tray icon yet? I could use the help.

Many Thanks
Christopher
Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel »

The tray icon is unsupported and specifically for Windows (it won't give you a menu item in the upper-right on MaxOSX, for instance)
Currently the only documentation is available in the Whats_New.txt file in the Revolution directory in Program files.
Here are a few pointers:
1. To get a tray icon:

Code: Select all

set the icon to 204010 -- the id of the image to sue as an icon
2. To set the tray icon menu

Code: Select all

set the iconMenu to "Say boo" & return & "About me"
3. To react to the user picking an item, put this in a backscript

Code: Select all

on iconMenuPick pItem
  answer "Got an iconMenuPick for:" && pItem
end iconMenuPick
For more information regarding the sue of labels, tags and dynamically modifying the icon menu, see the documentation in Whats_New.txt

Hope this helped,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
ChristopherBodell
Posts: 52
Joined: Sun Jan 20, 2008 7:06 am

Ok

Post by ChristopherBodell »

Ok, I'll give that a try, thanks Jan

Christopher
ChristopherBodell
Posts: 52
Joined: Sun Jan 20, 2008 7:06 am

Perfect

Post by ChristopherBodell »

Thanks Jan,

That's perfect, i remembered seeing something about that somewhere but i couldn't remember, and i previously posted about the icon but i received no replies so yeah.......... Perfect.

Many Thanks,


Christopher
Post Reply