• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Text in System Tray

I'm working on making a clock (like the system clock, except made by me), and I really need to know how I can add text to the system tray.  I found out how to add icons, but not text!

Please help!  Any comments or anything would be appreciated.

Preferably, I'd like it so that I can treat it almost like a label, or text box, something that I can easily edit the colors, background colors, etc.  Like:

statusbartext.backcolor = (whatever)

and

statusbartext.text (or caption) = "whatever"

Thank you so much!

75 pts is all I got :(

-Sam
0
samsonite_VB
Asked:
samsonite_VB
  • 4
  • 4
  • 3
  • +4
1 Solution
 
amebaCommented:
>I found out how to add icons, but not text!
You should add icon to systray.  Here is how to modify icon:

' Form1, add textbox, picturebox and Imagelist (dimensions 16x16)
Option Explicit

Private Sub Form_Load()
   Picture1.AutoRedraw = True
   Picture1.BorderStyle = 0
   Picture1.Width = 16 * 15
   Picture1.Height = 16 * 15
   Picture1.Font = "Small Fonts"
   Picture1.FontSize = 6
   Picture1.BackColor = vbWhite
End Sub

Private Sub Text1_Change()
   On Error Resume Next

   Picture1.Cls
   Picture1.Print Text1.Text
   ImageList1.ListImages.Remove "status"
   ImageList1.ListImages.Add , "status", Picture1.Image

   Set Me.Icon = ImageList1.ListImages("status").ExtractIcon

End Sub

Please, do not accept this comment 'as answer' if it isn't for A grade.
0
 
TimCotteeCommented:
For a different approach: http://www.geocities.com/timcottee/downloads/traywindow.zip

This sample project allows you to place an entire form in the system tray and have buttons/labels etc active within it.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
nutwissCommented:
tim - your link's dead....

that's geoshitties for you :)
0
 
TimCotteeCommented:
nutwiss, this happens many times. If you go to http://www.geocities.com/TimCottee and click the downloads link you should get there. Don't ask me why the link is dead, I copied it straight off the page myself!
0
 
amebaCommented:
It's problem with geocities server. To download file, right-click and select 'Save Target As'

I found their mirror server with prefix 'us.share' to always work with zip files:
http://us.share.geocities.com/timcottee/downloads/traywindow.zip
0
 
amebaCommented:
>mirror server with prefix 'us.share' to always work

This is the first time that doesn't work for me.  :-)
So, the only solution is: right-click and select 'Save Target As'
0
 
nutwissCommented:
btw tim, your code works, but, it has to be said, shows little regard for windows standards - it's kind of rude to simply replace the system tray with your own window, don't you think? ;>>
0
 
samsonite_VBAuthor Commented:
Tim, your program is nice... but is there any way to get it NOT to take over the whole system tray?

It'd be awesome if It would just stick itself to the right of the last icon.

-Sam
0
 
TimCotteeCommented:
I am going to have a look at how this might be possible, either to do as you suggest or to place it in the taskbar as a seperate window.
0
 
DanRollinsCommented:
Hi samsonite_VB,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Split points between: ameba and Richie_Simonetti

samsonite_VB, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
Richie_SimonettiIT OperationsCommented:
I didn't try his links but, what about Tim?
0
 
DanRollinsCommented:
hi Richie_Simonetti,
I have to base my original recommendation on available info.  And I have expert input re TimCottee's solution already (see the nutwiss post of 06/18/2001 02:54AM).

Tim, want to add anything?
-- Dan
0
 
Richie_SimonettiIT OperationsCommented:
Ok. My apologize.
Cheers
(keep the hard work, Dan. Thank you)
0
 
TimCotteeCommented:
nutwiss is right in what he says and as I don't really need the 100 points I am quite happy to leave it as suggested. Dan has recommended at least 10 other threads my way this morning so I am quite happy with that.
0
 
DanRollinsCommented:
My new EE handle: Santa Claus :)
0
 
NetminderCommented:
Per recommendation, force-accepted.

Netminder
CS Moderator

Richie_Simonetti: points for you at http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20328617
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 4
  • 3
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now