System Tray Icon Sizes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Veldthuis

    System Tray Icon Sizes

    What sizes can the system tray icons be?

    I have a utility that I display a number as an icon. I do it by using drawstring into the icon
    bitmap and displaying it. It is fine as long as the number is only 2 digits but when it hits 3 the
    text runs off the end of the icon and you cant see it anymore. I get around this by making the font
    smaller but it makes it hard to read then.

    An ideal way would be to do something like the clock does but I am unable to work out how it does
    it. Any ideas? The icon I use is a 32x32 which I cut down to 16x16. Another way I thought of doing
    it was to make it 24x16 and that would give me the extra width but it does not work.
  • Herfried K. Wagner [MVP]

    #2
    Re: System Tray Icon Sizes

    "John Veldthuis" <whocares@you.s pam.me.com> schrieb:[color=blue]
    > What sizes can the system tray icons be?[/color]

    16 × 16 pixels.
    [color=blue]
    > I have a utility that I display a number as an icon. I do it by using
    > drawstring into the icon
    > bitmap and displaying it. It is fine as long as the number is only 2
    > digits but when it hits 3 the
    > text runs off the end of the icon and you cant see it anymore. I get
    > around this by making the font
    > smaller but it makes it hard to read then.
    >
    > An ideal way would be to do something like the clock does but I am unable
    > to work out how it does[/color]

    The clock is not an icon.

    You may want to use an explorer bar instead:

    Extending Explorer with Band Objects using .NET and Windows Forms
    <URL:http://www.codeproject .com/csharp/dotnetbandobjec ts.asp>

    Shell Extensions with .NET
    <URL:http://mvps.org/emorcillo/en/code/shell/shellextensions .shtml>

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    Working...