18 SynTray
The program SynTray provides a tray interface to syn. It is very small due to using
only pure API and no VCL. It starts very fast and needs nearly no resources, it has
just a very simple message loop. This program has no window12,
but just a popup menu (18.1). It should give you a fast way to
access some basic functions from syn. It is not possible to start more than one
instance from SynTray, even not when you've two or more programs of this in
different folders.
This program uses always an existing instance of syn, if there is no instance
it will start it. When there are more than one instance, it will use the
last started. We recommend that you activate "Limit to one instance"
(5.8) (Options, General, <
A HREF="options.html#sec:OptionsGeneral">8.1)
which doesn't allow to start more instances.
A Yellow icon in the system tray indicated that syn is currently running, and a red icon
means syn is not running.
18.1 Menu
A doubleclick with the left mouse button makes the same as the "Show syn" menu item,
a right click will show the menu (Figure 38).
- Show syn:
- Shows or launches syn.
- New Document:
- Shows or launches syn and creates a new document.
- Paste from Clipboard:
- Shows or launches syn and creates a new document
with the clipboard contents.
- Open document:
- Shows or launches syn and shows the Open dialog.
- Open from FTP:
- Shows or launches syn and shows the Open from FTP dialog
(Figure 12).
- Recent Files:
- Lists all recently used files.
- Recent Projects:
- Lists all recently used projects.
- Save Document:
- Saves the active document.
- Save all Documents:
- Saves all open documents.
- Save all and Close:
- Saves all open documents and exists syn.
- Close syn:
- Closes syn.
- About SynTray:
- Shows version info from the syntray program.
- Exit SynTray:
- Exits the syntray program.

Figure 38: SynTray menu
18.2 Command line Switches
syntray [-close]
- -close:
- Closes an active instance of SynTray and closes itself. If no
instance from SynTray is running nothing happens. This switch is used to close
SynTray when you're uninstalling syn.