Code Directory
 Visual Basic & VB.NET
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
IcrediBB Bulletin Board System 1.0
Vue Injector 3.3
GnuWin64 64
iScripts EasySnaps 1
iScripts EasyIndex 1
iScripts NetMenus 2.0
Password Generator Software 2.3
Put your app in the System Tray 1.1
CardCheck COM DLL for Credit Card Processing 1.1
Azizi search engine script PHP 4.1.10
OpenGl 3D Effect 1.1
Linklok URL
School College ERP 1.3.2
Single Leg MLM 1.2.1
Custom Order Form2 1
Top Rated
Answers phpSoftPro 3.12
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
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: 5
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: 5

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