Results 1 to 6 of 6

Thread: Icon in system tray

  1. #1

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You should draw the text to that picturebox, use Print method, and cls to clear. Also set autoredraw to true
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  2. #2
    New Member
    Join Date
    Jan 1999
    Posts
    3
    Kedaman, I tried what you suggested but it still won't print the number in the icon. Maybe there is some different way to put the icon in the system tray? If you know of a way that works, I would really appreciate it.

    Thanks again,
    Raymond

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try updating the tray icon after the redraw.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    The Picturebox you're referring too is used only as a receiver for the Window Messages sent by/to the Tray Icon,
    so doing any kind of graphical operation on the Picturebox will do you no good.

    Instead you will have to either update the Icon each time,
    or use the "ToolTip" of the Tray Icon (although this way the new value wouldn't be visible unless the mouse is moved over the icon).

  5. #5

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You do know how to draw the icon right?
    You could use an imagelist's extracticon method to convert a bitmap to an icon.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6
    Lively Member
    Join Date
    Jun 2000
    Location
    Belgium
    Posts
    77
    KWell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width