<?xml version="1.0" encoding="windows-1251"?>
<rss version="0.92">
<channel>
<title>Sw4me - Tktray</title>
<link>http://www.sw4me.com/wiki/Tktray</link>
<description>History/revisions of Sw4me/Tktray</description>
<language>en-us</language>
<item>
<title>2009-08-21 10:23:10</title>
<link>http://www.sw4me.com/wiki/Tktray/show?time=2009-08-21+10%3A23%3A10</link>
<description>&lt;a name="p62-1">&lt;/a>&lt;p class="auto" id="p62-1">&lt;a href="http://tktray.googlecode.com/files/tktray1.2.tar.gz" target="_blank" title="" class="outerlink">&lt;img src="http://www.sw4me.com/wiki/themes/tabs/icons/file.gif" alt="" border="0" />Download tktray sources&lt;/a>&lt;/p>&lt;hr noshade="noshade" size="1" />&lt;a name="p62-2">&lt;/a>&lt;p class="auto" id="p62-2">
&lt;!--notypo-->








&lt;h1> tktray(n) 1.1 tktray &amp;quot;tktray&amp;quot;&lt;/h1>
&lt;h2>&lt;a name="name">NAME&lt;/a>&lt;/h2>
&lt;p>
&lt;p> tktray - System Tray Icon Support for Tk on X11





&lt;h2>&lt;a name="synopsis">SYNOPSIS&lt;/a>&lt;/h2>
&lt;p>
package require &lt;b>Tcl 8.4&lt;/b>&lt;br />
package require &lt;b>tktray ?1.1?&lt;/b>&lt;br />
&lt;br />&lt;table border="1" width="100%" cellspacing="0" cellpadding="0">&lt;tr bgcolor="lightyellow">&lt;td bgcolor="lightyellow">&lt;table 0="0" width="100%" cellspacing="0" cellpadding="0">&lt;tr valign="top">&lt;td>&lt;a href="#1">&lt;b class="cmd">tktray::icon&lt;/b> &lt;i class="arg">pathName&lt;/i> ?&lt;i class="arg">options&lt;/i>?&lt;/a>&lt;/td>&lt;/tr>
&lt;tr valign="top">&lt;td>&lt;a href="#2">&lt;i class="arg">pathName&lt;/i> &lt;strong>configure&lt;/strong> ?&lt;i class="arg">options&lt;/i>?&lt;/a>&lt;/td>&lt;/tr>
&lt;tr valign="top">&lt;td>&lt;a href="#3">&lt;i class="arg">pathName&lt;/i> &lt;strong>bbox&lt;/strong>&lt;/a>&lt;/td>&lt;/tr>
&lt;/table>&lt;/td>&lt;/tr>&lt;/table>
&lt;h2>&lt;a name="description">DESCRIPTION&lt;/a>&lt;/h2>
&lt;p>
&lt;p>

Tktray is an extension that is able to create system tray icons.
It follows &lt;a href="http://www.freedesktop.org">http://www.freedesktop.org&lt;/a>
specifications when looking up the system tray 
manager. This protocol is supported by modern versions
of KDE and Gnome panels, and by some other panel-like application.

&lt;h2>&lt;a name="commands">COMMANDS&lt;/a>&lt;/h2>
&lt;p>

&lt;dl>

&lt;dt>&lt;a name="1">&lt;b class="cmd">tktray::icon&lt;/b> &lt;i class="arg">pathName&lt;/i> ?&lt;i class="arg">options&lt;/i>?&lt;/a>&lt;dd>


Create a new icon for the system tray. 
The application managing the system tray is notified about the new icon.
It normally results in the icon being added to the tray.

If there is no system tray at the icon creation time,
the icon will be invisible. When a new system tray appears, the icon will 
be added to it.

&lt;br />&lt;br />
&lt;dl>
&lt;dt>&lt;strong>-class&lt;/strong>&lt;dd>
   WM_CLASS attribute for the icon window. Tray manager may use class name
   to remember icon position or other attributes. 

&lt;br />&lt;br />
&lt;dt>&lt;strong>-image&lt;/strong>&lt;dd>
   image to show in the system tray. The value must be the name of a photo image.
   Transparency data of the photo are used to set the window's shape.

   The icon will be automatically redrawn or resized 
   appropriately on any image modifications.

&lt;br />&lt;br />
&lt;dt>&lt;strong>-visible&lt;/strong>&lt;dd>
   boolean value indicating whether the icon must be visible. 
   The system tray manager continues to manage the icon whether it is
   visible or not. Thus  when invisible icon becomes visible, its position
   on the system tray is likely to remain the same.

&lt;/dd>&lt;/dt>&lt;/dd>&lt;/dt>&lt;/dd>&lt;/dt>&lt;/dl>

&lt;dt>&lt;a name="2">&lt;i class="arg">pathName&lt;/i> &lt;strong>configure&lt;/strong> ?&lt;i class="arg">options&lt;/i>?&lt;/a>&lt;dd>

   
   Modify icon's options after it was created. 

&lt;br />&lt;br />
&lt;dt>&lt;a name="3">&lt;i class="arg">pathName&lt;/i> &lt;strong>bbox&lt;/strong>&lt;/a>&lt;dd>

   
   Get the list of left, top, right and bottom coordinates of the icon
   relative to the root window of the icon's screen.

   This command should be used in preference to &lt;b class="cmd">winfo rootx&lt;/b> and 
   &lt;b class="cmd">winfo rooty&lt;/b> to get icon location.
   No X11 events are delivered to the application when an
   ancestor window of an icon is resized or moved;
   thus Tk may have incorrect information about root coordinates of the window.

&lt;/dd>&lt;/dt>&lt;/dd>&lt;/dt>&lt;/dd>&lt;/dt>&lt;/dl>

&lt;h2>&lt;a name="windowmanagement">WINDOW MANAGEMENT&lt;/a>&lt;/h2>
&lt;p>
   An icon behaves like a toplevel window with respect to the 
   Tk &lt;b class="cmd">wm&lt;/b> and &lt;b class="cmd">winfo&lt;/b> commands. To get up-to-date information
   about the icon's screen coordinates, use &lt;b class="cmd">bbox&lt;/b> subcommand rather than 
   &lt;b class="cmd">winfo rootx&lt;/b> and &lt;b class="cmd">winfo rooty&lt;/b>.

   When &lt;i class="arg">-image&lt;/i> option is used, the window minimal size and shape
   are set using the dimensions and transparency information of the photo 
   image. &lt;b class="cmd">wm minsize&lt;/b> command may be used to set the minimal icon size
   when no image is given. Panel applications obey this setting usually.

   Like any toplevel window, the icon may contain widgets. 
   It's not recommended to build complex GUIs in the system tray. Also note
   that the correct handling of the keyboard input is unlikely to be possible.

&lt;h2>&lt;a name="authors">AUTHORS&lt;/a>&lt;/h2>
&lt;p>
Anton Kovalenko
See &lt;a href="http://www.sw4me.com/wiki/Tktray">http://www.sw4me.com/wiki/Tktray&lt;/a>.
&lt;p>



&lt;h2>&lt;a name="keywords">KEYWORDS&lt;/a>&lt;/h2>
&lt;p>
icons, system tray, taskbar
&lt;h2>&lt;a name="copyright">COPYRIGHT&lt;/a>&lt;/h2>
&lt;p>
Copyright &amp;copy; 2005, Anton Kovalenko&lt;br />

&lt;!--/notypo-->&lt;/p> </description>
</item>
<item>
<title>2006-01-06 21:13:00</title>
<link>http://www.sw4me.com/wiki/Tktray/show?time=2006-01-06+21%3A13%3A00</link>
<description>edited by AntonKovalenko</description>
</item>
<item>
<title>2005-12-13 03:43:07</title>
<link>http://www.sw4me.com/wiki/Tktray/show?time=2005-12-13+03%3A43%3A07</link>
<description>edited by AntonKovalenko</description>
</item>
<item>
<title>2005-12-13 03:41:58</title>
<link>http://www.sw4me.com/wiki/Tktray/show?time=2005-12-13+03%3A41%3A58</link>
<description>edited by AntonKovalenko</description>
</item>
</channel>
</rss>

