TrayIcon Control |
Post Reply |
Author | |||||
Auge_Ohr
Groupie Joined: 20 December 2008 Status: Offline Points: 65 |
Post Options
Thanks(0)
Posted: 10 March 2009 at 11:38pm |
||||
hi,
i got it working,but if i "MaximizeFromTray" the Icon is still in Tray. how can i "hide" Icon in Tray when "maximized" ? btw. Property Icon : a.) without it nothing works b.) "as Picture" meen Bitmap while i can not got ICO to work ! "Popup menu" are not include, right ? ... but how to "close" TrayIcon without Menu ? "Click" and "DblClick" are not usefull to "close" but i can use "DblClick" to "MaximizeFromTray" ShowBalloonTip will "popup" Ballon. is there any Way to show it when "hover" the Icon(Bitmap) in Tray ? thx for Advice |
|||||
greetings by OHR
Jimmy |
|||||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
||||
Hi,
I think you don't use it as should...
Question:
if i "MaximizeFromTray" the Icon is still in Tray.
how can i "hide" Icon in Tray when "maximized" ? Answer:
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.
Question: btw. Property Icon : a.) without it nothing works b.) "as Picture" meen Bitmap while i can not got ICO to work ! Answer:
Question:
"Popup menu" are not include, right ? ... but how to "close" TrayIcon without Menu ?
"Click" and "DblClick" are not usefull to "close" but i can use "DblClick" to "MaximizeFromTray" Answer:
You have to build your own popup menu
Question:
ShowBalloonTip will "popup" Ballon. is there any Way to show it when "hover" the Icon(Bitmap) in Tray ? Answer:
There's no event MouseMove, so you can't... Or you have to create you own code to do this.
I created a test project so you can see what is possible with above...
|
|||||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|||||
Auge_Ohr
Groupie Joined: 20 December 2008 Status: Offline Points: 65 |
Post Options
Thanks(0)
|
||||
Hi,
Yes most Application work this Way ... but not all. "Total Commander" or ASUS Probe does "remove" Icon from Tray when "maximize" ... i just want to ask if it is possible ...
see Answer about Sample
hm ... perhaps my Question is wrong. when i "hover" a Trayicon
i will get some Tooltip ... how to get a Tooltip ? is Tooltip the same as ShowBalloonTip ?
THX, now i "see" what you do. in Xbase++ we have :lbdown and :rbdown Callback slot. Codejock does "fire" MouseDown(Button, Shift, x , y ) but i have to create my Methode to react on Parameter : if Button = vbRightButton ok, got it |
|||||
greetings by OHR
Jimmy |
|||||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
||||
Hi,
Question:
Yes most Application work this Way ... but not all.
"Total Commander" or ASUS Probe does "remove" Icon from Tray when "maximize" ... i just want to ask if it is possible ... Answer:
If you maximize from tray you could set icon: wndTrayIcon.Icon = nothing (remove icon of TrayControl)
If form is minimized: wndTrayIcon.Icon = Me.Icon
Question:
hm ... perhaps my Question is wrong. when i "hover" a Trayicon
i will get some Tooltip ... how to get a Tooltip ? is Tooltip the same as ShowBalloonTip ? Answer:
These are 2 different things, see testproject
Used on startup: wndTrayIcon.ShowBalloonTip 2, "Application.....", "Right click for options", 4
Tooltip when hovering trayicon: wndTrayIcon.Text = Me.Caption
Hope it helps...
|
|||||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|||||
Auge_Ohr
Groupie Joined: 20 December 2008 Status: Offline Points: 65 |
Post Options
Thanks(0)
|
||||
Hi,
YES that it !
Text Property is "myTooltip" and Method ShowBalloonTip() can show me a Ballon ... but it was "turn off" by "Anti-Spy" so i can not see a Ballon ok next Question : when used MouseDown Event and icon is i Tray it become some negative Value for "Y" i can use ABS(Y) when Taskbar are "left","right" and "Bottom" but what about have on "Top" ? is TrayIcon MouseDown Event when right-click on Icon "in" Tray the Positon "in Tray" ? to calculate "absolute" Position i need to know who is the Parent of TrayIcon "in" Tray ? while Tray is part of Taskbar i try this
|
|||||
greetings by OHR
Jimmy |
|||||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
||||
Hi,
I didn't get any negative values when taskbar was moved (l,t,r,b)
Looks like x and y value (in MouseDown event) is position in screen.
Why do you want these coordinates anyway?
|
|||||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |