Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Paste phpSoftPro 1.4.1
Bytescout PDF SDK 1.8.1.243
Odoo Crafito Theme 1.0
Uber Clone- Taxi Booking App 4.1
Excel Add-in for BigCommerce 1.7
Online Food Delivery Script php 1.0.3
Break Script | Youtube Clone Script 1.0.3
Advanced Content Manager Magento 2 extension 2.2.x
dbForge Studio for PostgreSQL 1.0
ODBC Driver for Salesforce MC 1.3
Social Media Script 1.0
ByteScout PDF Renderer SDK 9.0.0.3079
Magento Mobile App Builder 2.0.0
Binary MLM Plan 1.0.2
Review Assistant 4.0
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Form Designer.Net 2.01
SNMPLib.NET 1.0
VISCOM Video Editing SDK ActiveX 8.53
Skater .NET Obfuscator 3.01.7
PHP Scripts Mall Pvt Ltd 1.0.2
Barcode Reader SDK for .NET 1.0
Free Pageant Contest Source Code 1.0
NUFFT, NFFT, USFFT 1.0
Jwatch
DiskControls 3.8.4
wc_remote 1.0
US National Debt Clock by EHT 1.1
Transparancy
SuperGeek Free Document OCR 2.5.6
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
PHP Point of sale 10.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.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: 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

Examples:
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

Warning:
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 http://undocumentedmatlab.com/blog/setting...tem-tray-icons/ and http://undocumentedmatlab.com/blog/setting...popup-messages/

Limitations:
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 flickr.com images,have fun!
Get Flickr Thumbnails plugin can get thumbnails for photos on your site that from flickr.com,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