[comp.windows.ms] Icons ...

wcwang@iuvax.cs.indiana.edu (Bill Wang) (09/20/90)

I have successfully changed the icons in program manager to different
ones than the MS shipped ones.  But somehow, I couldn't quite
figure out why they turned into the default <dos> icons when I used
<esc>-<alt> to switch to other processes.  There got to be a problem
somewhere.  Thanks in advance for any enlights on the matter.

risto@tuura.UUCP (Risto Lankinen) (09/20/90)

wcwang@iuvax.cs.indiana.edu (Bill Wang) writes:


>I have successfully changed the icons in program manager to different
>ones than the MS shipped ones.  But somehow, I couldn't quite
>figure out why they turned into the default <dos> icons when I used
><esc>-<alt> to switch to other processes.  There got to be a problem
>somewhere.  Thanks in advance for any enlights on the matter.

Hi!

Windows' Program Manager probably expects full path names for the icon
files you've written on the File..Properties..etc line.  What possibly
happens is that when ProgMan regains control, the program being used
meanwhile had changed directory and the icon files were no longer present
in the 'relative' path.  In that case, the 'first available' icon is
displayed, which is just the PROGMAN.EXE's own DOS screen icon.

Terveisin: Risto Lankinen

-- 
Risto Lankinen / product specialist ***************************************
Nokia Data Systems, Technology Dept *  2                              2   *
THIS SPACE INTENTIONALLY LEFT BLANK * 2 -1 is PRIME!  Now working on 2 +1 *
replies: risto@yj.data.nokia.fi     ***************************************

ron@woan (Ronald S. Woan) (09/20/90)

In article <59439@iuvax.cs.indiana.edu>, wcwang@iuvax.cs.indiana.edu
(Bill Wang) writes:
Bill> I have successfully changed the icons in program manager to different
Bill> ones than the MS shipped ones.  But somehow, I couldn't quite
Bill> figure out why they turned into the default <dos> icons when I used
Bill> <esc>-<alt> to switch to other processes.  There got to be a problem
Bill> somewhere.  Thanks in advance for any enlights on the matter.

Changing the icons in the program manager does nothing to the program
itself. Progarm manager maintains its own application/icon references,
so when you used switch or iconize, in general, with the application
running you will get the program's inherent icon (here defaulting to
the generic DOS) at the bottom of the screen. 

					Ron

+-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+
+------------------------------My Employer----------------------------------+
+ Ronald S. Woan       woan@peyote.cactus.org or woan@austin.iinus1.ibm.com +
+ other email addresses             Prodigy: XTCR74A Compuserve: 73530,2537 +

poffen@sj.ate.slb.com (Russell Poffenberger) (09/21/90)

In article <763@tuura.UUCP> risto@tuura.UUCP (Risto Lankinen) writes:
>wcwang@iuvax.cs.indiana.edu (Bill Wang) writes:
>
>
>>I have successfully changed the icons in program manager to different
>>ones than the MS shipped ones.  But somehow, I couldn't quite
>>figure out why they turned into the default <dos> icons when I used
>><esc>-<alt> to switch to other processes.  There got to be a problem
>>somewhere.  Thanks in advance for any enlights on the matter.
>
>Hi!
>
>Windows' Program Manager probably expects full path names for the icon
>files you've written on the File..Properties..etc line.  What possibly
>happens is that when ProgMan regains control, the program being used
>meanwhile had changed directory and the icon files were no longer present
>in the 'relative' path.  In that case, the 'first available' icon is
>displayed, which is just the PROGMAN.EXE's own DOS screen icon.
>
>Terveisin: Risto Lankinen
>

The icon shown for an application in a group under the program manager is under
control of the program manager. Selecting an icon under the properties section
tells progman to display that icon. Once the application is invoked, then
minimized, progman no longer has any control over it. For an application to
show an icon (other than the default DOS icon) when minimized, it must be a
windows application that has an icon built into its resource. Non-windows
applications cannot do this, and there is no way (to my knowledge) to tell
windows to use a different icon in this case.


Russ Poffenberger               DOMAIN: poffen@sj.ate.slb.com
Schlumberger Technologies       UUCP:   {uunet,decwrl,amdahl}!sjsca4!poffen
1601 Technology Drive		CIS:	72401,276
San Jose, Ca. 95110             (408)437-5254

patrickd@chinet.chi.il.us (Patrick Deupree) (09/24/90)

In article <59439@iuvax.cs.indiana.edu> wcwang@iuvax.cs.indiana.edu (Bill Wang) writes:
>
>I have successfully changed the icons in program manager to different
>ones than the MS shipped ones.  But somehow, I couldn't quite
>figure out why they turned into the default <dos> icons when I used
><esc>-<alt> to switch to other processes.  There got to be a problem
>somewhere.  Thanks in advance for any enlights on the matter.

OK.  Here's the story.  When you're running a DOS application, you're
using an Icon built into the Windows binaries for a DOS application.
Any Icon you create for the Program manager only applies to the program
manager.  The program itself decides what the icon will be when that
application is minimized.

Now, in the case of Windows programs, you'll be able to change that
icon whenever Whitewater finally finishes the Resource Toolkit for
Windows 3.0.  As for Dos applications, you're stuck with the DOS icon
and there's really nothing that can be done about it.

Patrick
-- 
"What's in a name?  That which we call a rose by any other name would smell
 as sweet."             William Shakespeare
Patrick Deupree ->	patrickd@chinet.chi.il.us   (708) 328-3800
(Please note there are both a patrick and a patrickd at this site)

dww@stl.stc.co.uk (David Wright) (09/27/90)

In article <1990Sep21.144846.12723@sj.ate.slb.com> poffen@sj.ate.slb.com (Russell Poffenberger) writes:
#
#..... ...  For an application to
#show an icon (other than the default DOS icon) when minimized, it must be a
#windows application that has an icon built into its resource. Non-windows
#applications cannot do this, and there is no way (to my knowledge) to tell
#windows to use a different icon in this case.

Wrong, fortunately.  For example, on my system Kermit now shows a very
non-standard icon when minimised.

Get hold of icon editor icon12, posted about a month ago (this group or
comp.binaries.ibm.pc, I forget) and now no doubt on Simtel etc..
Make your icon, select your application, select Properties, in that select
change icon.  Then put the full path name of your icon file in as the icon
file name.   That's all there is to it - even I could do it!
Now if I could just learn how to draw a *proper* frog .... :-)

Regards,          "None shall be enslaved by poverty, ignorance or conformity"
        David Wright             STL, London Road, Harlow, Essex  CM17 9NA, UK
dww@stl.stc.co.uk  <or> ...uunet!mcsun!ukc!stl!dww  <or> PSI%234237100122::DWW
<or> /g=David/s=Wright/org=STC Technology Ltd/prmd=STC plc/admd=Gold 400/co=GB

poffen@sj.ate.slb.com (Russ Poffenberger) (10/09/90)

In article <3432@stl.stc.co.uk> dww@stl.stc.co.uk (David Wright) writes:
>In article <1990Sep21.144846.12723@sj.ate.slb.com> poffen@sj.ate.slb.com (Russell Poffenberger) writes:
>#
>#..... ...  For an application to
>#show an icon (other than the default DOS icon) when minimized, it must be a
>#windows application that has an icon built into its resource. Non-windows
>#applications cannot do this, and there is no way (to my knowledge) to tell
>#windows to use a different icon in this case.
>
>Wrong, fortunately.  For example, on my system Kermit now shows a very
>non-standard icon when minimised.
>
>Get hold of icon editor icon12, posted about a month ago (this group or
>comp.binaries.ibm.pc, I forget) and now no doubt on Simtel etc..
>Make your icon, select your application, select Properties, in that select
>change icon.  Then put the full path name of your icon file in as the icon
>file name.   That's all there is to it - even I could do it!
>Now if I could just learn how to draw a *proper* frog .... :-)
>

Unfortunately this does not work except to change the icon presented in the
program manager ONLY. Once the application is launched, then minimized, only
a true windows application will show anything other than the default DOS icon.

Russ Poffenberger               DOMAIN: poffen@sj.ate.slb.com
Schlumberger Technologies       UUCP:   {uunet,decwrl,amdahl}!sjsca4!poffen
1601 Technology Drive		CIS:	72401,276
San Jose, Ca. 95110             (408)437-5254

slemons@contract3.EBay.Sun.COM (Steve Lemons) (12/18/90)

So - you've downloaded an icon editor, created some icons for Program Manager
that are more to your liking, and you've told Program Manager to use the new icons. Now, what to do with all those icons that you've created?

It doesn't matter!!

In another slight-of-hand trick, Windows has grabbed a copy of the icon 
bitmap and stored it in the associated .GRP file, along with the path that
you specified for the alternate icon file. From this point on, the icon
displayed in Program Manager is read from the Program Group (*.GRP) file.

This appears to be the procedure in all cases. If the Program Item contains
an icon - and you don't tell Program Manager to use a different one - the 
icon is extracted from the program and stored in the .GRP file. This appears 
to be true even with standard Windows Program Items such as Notepad, Control 
Panel, and File Mangler.

Since Program Manager keeps it's own copies of icons, there is no need to 
keep icon files on your hard disk. And that's a good thing, since an icon
file of 800 bytes is taking up at least 2048 byes of hard disk space. Save
a few of those, and you are wasting a lot of disk space.

You do need to keep a copy of the icon files on a floppy though, in case 
Program Manager 'forgets' the icon image and needs to be refreshed.


-----------------------------------------------------------------------------
"We'll burn that bridge when we get to it..." Mrs. Mondegreen
-----------------------------------------------------------------------------