Code Directory
 Visual Basic & VB.NET
New Code
.Net Runtime Library for Delphi
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
AnyChart JS Charts and Dashboards 8.4.2
OrgChart JS 3.8.0
dbForge Compare Bundle for MySQL 8.1
dbForge Search for SQL Server 2.3
Database Workbench Pro 5.5.0
Luxand FaceSDK 7.0
SSIS Data Flow Components 1.10
Entity Developer Professional 6.3
dbForge Index Manager for SQL Server 1.9
dbForge Data Generator For MySQL 2.2
Magento Australia Post eParcel Extension 1.0
Top Code
soccerbet 1.0
Betting system 6.x-1.x-dev
Cuckoo Search (CS) Algorithm 1.0
JEDI Database Desktop 27012002
JAC (Java Asn.1 Compiler) 3.0
Analog Clock from Jay 1.0
Stepping stone algorithum for solving the transhipment problem
Equipment Rental Script 1.0
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
object tracking using kalman filter 1.0
BS/1 Accounting - Accounting Source Code
Time Tracking Software
College Management System Script 1.0.4
XHint 1.0
Online Car Rental Management Software Solution Alpha
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
SYSTRAY - set/get system-tray icons on your computer's desktop 1.0
File ID: 90964

SYSTRAY - set/get system-tray icons on your computer's desktop 1.0
Download SYSTRAY - set/get system-tray icons on your computer's desktop 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 4
Submit Rating:
SYSTRAY - set/get system-tray icons on your computer's desktop 1.0 Description
Description: SYSTRAY sets icons in the system-tray of your computer's desktop, if available. SYSTRAY enables setting several sys-tray icon properties and returns the system tray handle(s), if available.

Syntax: handles = systray(varargin);

handles = SYSTRAY retrieves the array of handles for the system-tray icons that were set in Matlab. If no icon is currently displayed in the sys-tray, then the returned array will be empty. If system-tray functionality is unsupported on your platform, then SYSTRAY throws a deliberate error.

handle = SYSTRAY(ICONIMAGE) sets an icon based on the requested icon image and returns its handle. The icon is automatically resized to the sys-tray's default icon size (e.g., 16x16). If ICONIMAGE was already created then it will not be recreated, only its handle will be returned. Note that ICONIMAGE may be an image filename, or any image format accepted by Matlab's im2java function. ICONIMAGE may also be a two-arg pair [X,Map] (indexed image & color map).

handle = SYSTRAY(ICON, param1,value1, param2,value2, ...) sets ICON with initial properties in the familiar format of property name/value pairs. ICON may be either an existing systray icon handle, an array of existing icon handles, or an iconImage as explained above. Property order does not matter and the property names are case-insensitive.

Icon properties can also be read/modified after creation, using get() & set() on the icon handle, or via the dot-notation (hIcon.Tag='iconTag').

The supported properties (gettable and settable) are:

- 'IconImage' - updates the icon image [filename or Matlab image]
- 'ImageAutoSize' - auto-resizes icon to tray size (default='on'/true)
- 'Tooltip' - sets the icon hover tooltip
- 'UIContextMenu' - sets the right-click context-menu (like uicontrols). Provide a uicontextmenu handle or java.awt.PopupMenu object
- 'MarkForDeletion' - set to any value to remove the icon from the systray
- 'Tag' - same as uicontrol
- 'UserData' - same as uicontrol
- 'Message' - text of an informational popup msg next to the icon should be a cell array of {titleText,msgText,severity} where severity = 'none','error','info' or: 'warn' (default: 'info'). Title may be empty, but then no severity icon will show

...and also some gettable-only (i.e., read-only) properties:
- 'Size' - icon size [width,height] - a java.awt.Dimension object
- 'IconWidth' - icon width in [pixels] - numeric value
- 'IconHeight' - icon height in [pixels] - numeric value
- 'Type' - icon type [class name = 'java.awt.TrayIcon']
- 'JavaObject' - reference to the TrayIcon Java object
- 'Class' - class of the Java object

...and also a bunch of callback properties that can be set in any of Matlab's callback formats: 'callback string', @callbackFunc or: {@callbackFunc,params,...}:

- 'MouseClickedCallback' - called when icon is mouse-clicked (pressed & released)
- 'MousePressedCallback' - called when icon is mouse-clicked (before release)
- 'MouseReleasedCallback' - called when icon is mouse-clicked (after release)
- 'MouseEnteredCallback' - called when mouse is moved to within icon bounds
- 'MouseExitedCallback' - called when mouse is moved outside the icon bounds
- 'MouseMovedCallback' - called when mouse is moved over the icon
- 'MouseDraggedCallback' - called when mouse drags the icon
- 'ActionPerformedCallback' - called when icon is double-clicked

hIcons = systray; % returns list of existing icon handles
hIcon = systray('icon.png'); % display a simple icon
hIcon = systray('icon.png','Tooltip','right-click me!','UIContextmenu',cm);
systray(hIcon,'Message',{'title','informational message','warn'});
userdata = get(hIcon,'UserData');
set(hIcon,'userdata',magic(5)); % case insensitive prop names
set(hIcon,'markForDeletion',1); % remove icon from sys tray

This code requires Java 1.6, available since Matlab 7.5. (R2007b). This code also uses some undocumented Matlab features.

Technical details:
The details are explained in and

Due to the undocumented nature of some features, I have still not been able to bypass a few limitations in functionality - see the help section for details.

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

License: Shareware

Related: Class, Trayicon, bunch, Callback, Formats, Reference, javaobject, Height, Type, javaawttrayicon, String, released, mousepressedcallback, Release, pressed

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 4

More Similar Code

This sample connects to the running instances of IE on your computer and prints out the URL, Cookie- if any, and the HTML content of the site.
It can be extended to connect to running instances on another computer using DCOM and particularly using CoCreateInstanceEx():
Extend it as you wish and let me know how useful it has been to you!

This is a small C-library to create an maintain the tray icons in your own programs and a set of tiny lightning-fast trayicon utilities to show the cpu-load, mem-load, xkb-layout & mixer-volumes.

Version 0.91 update:It works for non images,have fun!
Get Flickr Thumbnails plugin can get thumbnails for photos on your site that from,you can choose recent or random mode,and it will link to your own post.


Live Comment Preview is the simplest way to get live comment previews on your site. Simply activate the plugin -- That's it!

This plugin uses only client-side javascript to format a preview, it does not make any Ajax requests to the...

With this plugin you get a new widget on your dashboard showing you every post on which you haven't commented as last person. This is very usefull for blogger who wants to give the attention to their commenting readers they should have.

CamStudio is able to record all screen and audio activity on your computer and create industry-standard AVI video files and using its built-in SWF Producer can turn those AVIs into lean, mean, bandwidth-friendly Streaming Flash videos (SWFs).

MicroRidge sells a product called GageWay that allows you to read a Mitutoyo linear encoder through a serial (or USB) port on your computer. The serial port commands are very straight forward, but it took me a couple of tries to get the port...

Duplicate Files Searcher is a free powerful software utility that will help you to find and delete duplicate files on your computer. It can also be used to calculate MD5 and SHA hashes. The software runs in Windows, Linux, Solaris and MacOS.

For longer operations on your computer, it is practical to inform the user that a calculation is running. For this reason, you can call the 'busyWindow' function. It displays your message to the user.
There are three modes: The busy window...

Online Check Links Plugin is ready for use, is stored in the wordpress database to create a table surely will have a lifetime on your website, where s record everything related to your trading, shopping, and as sure link all got to your site.

User Review for SYSTRAY - set/get system-tray icons on your computer's desktop
- required fields

Please enter text on the image