<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : TrayIcon Control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : TrayIcon Control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:42:03 +0000</pubDate>
  <lastBuildDate>Fri, 20 Mar 2009 10:04:53 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13639</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[TrayIcon Control : Hi,  I didn&amp;#039;t get any negative...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46948&amp;title=trayicon-control#46948</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13639<br /><strong>Posted:</strong> 20 March 2009 at 10:04am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I didn't get any negative values when taskbar was moved (l,t,r,b) </DIV><DIV>&nbsp;</DIV><DIV>Looks like x and y value (in MouseDown event)&nbsp;is position in screen. </DIV><DIV>&nbsp;</DIV><DIV>Why do you want these coordinates anyway?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 20 Mar 2009 10:04:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46948&amp;title=trayicon-control#46948</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon Control : Hi,    Aaron wrote:Answer: If...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46924&amp;title=trayicon-control#46924</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4822">Auge_Ohr</a><br /><strong>Subject:</strong> 13639<br /><strong>Posted:</strong> 20 March 2009 at 5:44am<br /><br />Hi,<br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><div><strong><font color="#ff0000">Answer</font></strong>:</div><div>If you maximize from tray you could set icon: <strong>wndTrayIcon.Icon = nothing</strong> (remove icon of TrayControl)</div><div>If form is minimized: <strong>wndTrayIcon.Icon = Me.Icon</strong></div><div></td></tr></table><br>YES that it ! <br></div><div><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><br></div><div><font color="#ff0000"><strong>Answer</strong></font>:</div><div>These are 2 different things, see testproject</div><div>Used on startup: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wndTrayIcon.ShowBalloonTip 2, "Application.....", "Right click for options", 4</div><div>Tooltip when hovering trayicon: &nbsp;wndTrayIcon.Text = Me.Caption </div>Hope it helps... &nbsp;<img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></td></tr></table>now i got it, they are different !<br><b>Text</b> Property is "myTooltip" and Method ShowBalloonTip() can show me a <b>Ballon </b>... <br>but it was "turn off" by "Anti-Spy" so i can not see a <b>Ballon</b><br><br>ok next Question : when used MouseDown Event and icon is i Tray it become some negative Value for "Y"<br>i can use ABS(Y) when Taskbar are "left","right" and "Bottom" but what about have on "Top" ?<br><br>is TrayIcon MouseDown Event when right-click on Icon "in" Tray the Positon "in Tray" ?<br>to calculate "absolute" Position i need to know who is the Parent of TrayIcon "in" Tray ?<br><br>while Tray is part of Taskbar i try this<br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> <br>FUNCTION TaskPosition()<br>LOCAL TrayWindow<br>LOCAL sAppBarMessage<br>LOCAL rc, cRet<br>LOCAL nIndex, nEdge, sRect<br>LOCAL nLeft&nbsp;&nbsp; := 0<br>LOCAL nTop&nbsp;&nbsp;&nbsp; := 0<br>LOCAL nRight&nbsp; := 0<br>LOCAL nBottom := 0<br><br>&nbsp;&nbsp; // Fensterhandle des Taskbar holen<br>&nbsp;&nbsp; TrayWindow := FindWindowA('Shell_traywnd',0)<br><br>&nbsp;&nbsp; // Position und Koordinaten ermitteln<br>&nbsp;&nbsp; sAppBarMessage := U2Bin(36) + L2Bin(TrayWindow) + replicate( U2Bin(0), 7 )<br>&nbsp;&nbsp; rc := SHAppBarMessage( ABM_GETTASKBARPOS, @sAppBarMessage )<br><br>&nbsp;&nbsp; nIndex := 13<br>&nbsp;&nbsp; nEdge := Bin2U( substr(sAppBarMessage, nIndex, 4) ) ; nIndex += 4<br>&nbsp;&nbsp; sRect := substr( sAppBarMessage, nIndex, 16 )<br><br>&nbsp;&nbsp; DO CASE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CASE nEdge == ABE_LEFT&nbsp;&nbsp; ; cRet := "LEFT"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CASE nEdge == ABE_TOP&nbsp;&nbsp;&nbsp; ; cRet := "TOP"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CASE nEdge == ABE_RIGHT&nbsp; ; cRet := "RIGHT"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CASE nEdge == ABE_BOTTOM ; cRet := "BOTTOM"<br>&nbsp;&nbsp; OTHERWISE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cRet := "Error "+STR(nEdge)<br>&nbsp;&nbsp; ENDCASE<br><br>&nbsp;&nbsp; IF "Error" $ cRet<br>&nbsp;&nbsp; ELSE<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nIndex&nbsp; := 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nLeft&nbsp;&nbsp; := Bin2L( substr(sRect, nIndex, 4) ) ; nIndex += 4<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nTop&nbsp;&nbsp;&nbsp; := Bin2L( substr(sRect, nIndex, 4) ) ; nIndex += 4<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nRight&nbsp; := Bin2L( substr(sRect, nIndex, 4) ) ; nIndex += 4<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nBottom := Bin2L( substr(sRect, nIndex, 4) ) ; nIndex += 4<br><br>&nbsp;&nbsp; ENDIF<br><br>RETURN {cRet,{nLeft, nTop, nRight, nBottom} }<br></td></tr></table>can TrayIcon MouseDown Event take care of Position of Taskrbar please.<br><br>]]>
   </description>
   <pubDate>Fri, 20 Mar 2009 05:44:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46924&amp;title=trayicon-control#46924</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon Control : Hi,  Question: Yes most Application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46793&amp;title=trayicon-control#46793</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13639<br /><strong>Posted:</strong> 17 March 2009 at 1:49am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV><strong><FONT color=#0000ff>Question</FONT></strong>:</DIV><DIV>Yes most Application work this Way ... but not all.<BR>"Total Commander" or ASUS Probe does "remove" Icon<BR>from Tray when "maximize" ...<BR><BR>i just want to ask if it is possible ...<BR></DIV><DIV>&nbsp;</DIV><DIV><strong><FONT color=#ff0000>Answer</FONT></strong>:</DIV><DIV>If you maximize from tray you could set icon: <strong>wndTrayIcon.Icon = nothing</strong> (remove icon of TrayControl)</DIV><DIV>If form is minimized: <strong>wndTrayIcon.Icon = Me.Icon</strong></DIV><DIV>&nbsp;</DIV><DIV><strong><FONT color=#0000ff>Question</FONT></strong>:</DIV><DIV>hm ... perhaps my Question is wrong. when i "hover" a Trayicon<BR>i will get some Tooltip ... how to get a Tooltip ?<BR><BR>is Tooltip the same as ShowBalloonTip ?<BR></DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000><strong>Answer</strong></FONT>:</DIV><DIV>These are 2 different things, see testproject</DIV><DIV>&nbsp;</DIV><DIV>Used on startup: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wndTrayIcon.ShowBalloonTip 2, "Application.....", "Right click for options", 4</DIV><DIV>Tooltip when hovering trayicon: &nbsp;wndTrayIcon.Text = Me.Caption </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Hope it helps... &nbsp;<img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 17 Mar 2009 01:49:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46793&amp;title=trayicon-control#46793</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon Control : Hi,    Aaron wrote: I think...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46785&amp;title=trayicon-control#46785</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4822">Auge_Ohr</a><br /><strong>Subject:</strong> 13639<br /><strong>Posted:</strong> 16 March 2009 at 10:39pm<br /><br />Hi,<br><div><br></div><div><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><br></div><div>I think you don't use it as should... <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></div><div><strong><font color="#0000ff">Question</font></strong>:</div><div>if i "MaximizeFromTray" the Icon is still in Tray. <br>how can i "hide" Icon in Tray when "maximized" ? <br></div><div><strong><font color="#ff0000">Answer</font></strong>:</div><div>TrayIcon is showed when application has been started. <br>It will be there all the time until you end it. <br>Try with Windows TaskManager you will see same thing.&nbsp;&nbsp;&nbsp;</div><div></td></tr></table><br>Yes most Application work this Way ... but not all.<br>"Total Commander" or ASUS Probe does "remove" Icon<br>from Tray when "maximize" ...<br><br>i just want to ask if it is possible ...<br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><br></div><div><div><strong><font color="#0000ff">Question</font></strong>:</div>btw. Property <strong>Icon</strong> : <br>a.) <strong>without</strong> it nothing works <br>b.) "as Picture" meen <strong>Bitmap</strong> while i can not got <strong>ICO</strong> to work ! <br></div><div><strong><font color="#ff0000">Answer</font></strong>: </div><ul><li>a) Of course it doesn't work. If no icon is assigned what&nbsp;is purpose of&nbsp;TrayIcon control? </li><li>If you want application icon use: wndTrayIcon.Icon = Me.Icon (= icon in form caption)&nbsp; <br></td></tr></table>ok understand</li></ul><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><br><div><strong><font color="#0000ff">Question</font></strong>:</div><div>"Popup menu" are not include, right ? ... but how to "close" TrayIcon without Menu ? <br>"Click" and "DblClick" are not usefull to "close" but i can use "DblClick" to "MaximizeFromTray" <br></div><div><strong><font color="#ff0000">Answer</font></strong>:</div><div>You have to build your own popup menu</div><div></td></tr></table><br>see Answer about Sample<br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><br></div><div><strong><font color="#0000ff">Question</font></strong>:<br>ShowBalloonTip will "popup" Ballon. <br>is there any Way to show it when "hover" the Icon(Bitmap) in Tray ? <br></div><div><strong><font color="#ff0000">Answer</font></strong>:</div><div>There's no event MouseMove, so you can't... <br>Or you&nbsp;have to create you own code to do this.<br></td></tr></table><br></div><div>hm ... perhaps my Question is wrong. when i "hover" a Trayicon<br>i will get some Tooltip ... how to get a Tooltip ?<br><br>is Tooltip the same as ShowBalloonTip ?<br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><br></div><div>I created a test project so you can see what is possible with above...</div><a href="https://forum.codejock.com/uploads/20090316_080841_TestTrayIc&#111;n.zip" target="_blank">uploads/20090316_080841_TestTrayIcon.zip</a></td></tr></table><br>THX, now i "see" what you do. <br><br>in Xbase++ we have :lbdown and :rbdown Callback slot. <br><br>Codejock does "fire" MouseDown(Button, Shift, x , y )<br>but i have to create my Methode to react on Parameter :<br><br>if Button = vbRightButton<br><br>ok, got it<br>]]>
   </description>
   <pubDate>Mon, 16 Mar 2009 22:39:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46785&amp;title=trayicon-control#46785</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon Control : Hi,  I think you don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46750&amp;title=trayicon-control#46750</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13639<br /><strong>Posted:</strong> 16 March 2009 at 8:06am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I think you don't use it as should... <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV><strong><FONT color=#0000ff>Question</FONT></strong>:</DIV><DIV>if i "MaximizeFromTray" the Icon is still in Tray. <BR>how can i "hide" Icon in Tray when "maximized" ? <BR></DIV><DIV><strong><FONT color=#ff0000>Answer</FONT></strong>:</DIV><DIV>TrayIcon is showed when application has been started. It will be there all the time until you end it. Try with Windows TaskManager you will see same thing.&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><DIV><strong><FONT color=#0000ff>Question</FONT></strong>:</DIV>btw. Property <strong>Icon</strong> : <BR>a.) <strong>without</strong> it nothing works <BR>b.) "as Picture" meen <strong>Bitmap</strong> while i can not got <strong>ICO</strong> to work ! <BR></DIV><DIV><strong><FONT color=#ff0000>Answer</FONT></strong>: </DIV><UL><LI>a) Of course it doesn't work. If no icon is assigned what&nbsp;is purpose of&nbsp;TrayIcon control? <LI>If you want application icon use: wndTrayIcon.Icon = Me.Icon (= icon in form caption)&nbsp;&nbsp;</LI></UL><DIV><strong><FONT color=#0000ff>Question</FONT></strong>:</DIV><DIV>"Popup menu" are not include, right ? ... but how to "close" TrayIcon without Menu ? <BR>"Click" and "DblClick" are not usefull to "close" but i can use "DblClick" to "MaximizeFromTray" <BR></DIV><DIV><strong><FONT color=#ff0000>Answer</FONT></strong>:</DIV><DIV>You have to build your own popup menu</DIV><DIV>&nbsp;</DIV><DIV><strong><FONT color=#0000ff>Question</FONT></strong>:<BR>ShowBalloonTip will "popup" Ballon. <BR>is there any Way to show it when "hover" the Icon(Bitmap) in Tray ? <BR></DIV><DIV><strong><FONT color=#ff0000>Answer</FONT></strong>:</DIV><DIV>There's no event MouseMove, so you can't... Or you&nbsp;have to create you own code to do this.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I created a test project so you can see what is possible with above...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20090316_080841_TestTrayIc&#111;n.zip" target="_blank">uploads/20090316_080841_TestTrayIcon.zip</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 16 Mar 2009 08:06:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46750&amp;title=trayicon-control#46750</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon Control : hi,  i got it working,but  if...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46503&amp;title=trayicon-control#46503</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4822">Auge_Ohr</a><br /><strong>Subject:</strong> 13639<br /><strong>Posted:</strong> 10 March 2009 at 11:38pm<br /><br />hi,<br /><br />i got it working,<strong>but</strong><br /><br />if i "MaximizeFromTray" the Icon is still in Tray.<br />how can i "hide" Icon in Tray when "maximized" ?<br /><br />btw. Property <strong>Icon</strong> :<br />a.) <strong>without</strong> it nothing works<br />b.) "as Picture" meen <strong>Bitmap</strong> while i can not got <strong>ICO</strong> to work !<br /><br />"Popup menu" are not include, right ? ... but how to "close" TrayIcon without Menu ?<br />"Click" and "DblClick" are not usefull to "close" but i can use "DblClick" to "MaximizeFromTray"<br /><br />ShowBalloonTip will "popup" Ballon. <br />is there any Way to show it when "hover" the Icon(Bitmap) in Tray ?<br /><br />thx for Advice]]>
   </description>
   <pubDate>Tue, 10 Mar 2009 23:38:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13639&amp;PID=46503&amp;title=trayicon-control#46503</guid>
  </item> 
 </channel>
</rss>