Results 1 to 7 of 7

Thread: icon in the tray...

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2001
    Posts
    41

    Question icon in the tray...

    I built icons for my app and use API function to place it in the task bar, they looks not so good there as when they are displayed as large icons. Any tips do I need to use?

    Thanks.

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    in win95/98 tray icons only have 16 colors.. in winME they're 256 colors and smoothed, however. Probably the best way is to create your icons in resolution 16x16x16 ...

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2001
    Posts
    41
    thanks, fox.

    I tried to draw icon using 16X16.(by VC++ IDE). and the icon did look better. But it could not be placed on the task bar(system tray)--nothing was displayed there when I used Shell_notifyIcon function as i did for 32X32 icon.

    Any ideas? Thanks again.

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    i always put my trayicons in pictureboxes.. maybe you called the function wrong? i attached you a module, just add it to your project and in form load/unload call create/remove trayicon.. have fun *smile

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2001
    Posts
    41
    fox, Thank u for ur code. but still have problem...

    I have no dificulty in placing a 32X32 icon to picture box and task bar using both ur code and mine. But I cannot make it for icon I built with 16X16 mode. (attached is test icon). Can u try to diaplay it ? perhaps some setting I missed?

    Thanks for ur help.

  6. #6
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Try removing the 32x32 icon from the file, and leave only the 16x16 icon in there (because the file you uploaded here contains 2 icons, the 32x32 version is empty )
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  7. #7
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    err yes indeed. the file doesn't have to be an icon, can be a bitmap or whatever - but if you use a icon make sure you only have the 16x16 pic in it, else it'll use the big one and stretch it..

    note: if you add a icon image in VS that doesnt mean the current one is remove..

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