Home > Archive > Fortran > May 2005 > Visual fortran Childicon becomes explorer icon
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Visual fortran Childicon becomes explorer icon
|
|
|
| I've followed the documentation of assigning an imported icon for
'frameicon' and 'childicon'. Application works and the frame and child
icons appear appropiately EXCEPT the child icon becomes the explorer
application icon. I would like it to be the frame icon.
Tried switching the icon definition order in the resource file with no
luck. Has anyone encountered this problem and have a solution?
Thanks,
Mike
| |
| Andy Spragg 2005-05-10, 8:58 am |
| On 9 May 2005 22:21:12 -0700, "Mike" <mschecter@comcast.net> wrote:
>I've followed the documentation of assigning an imported icon for
>'frameicon' and 'childicon'. Application works and the frame and child
>icons appear appropiately EXCEPT the child icon becomes the explorer
>application icon. I would like it to be the frame icon.
>
>Tried switching the icon definition order in the resource file with no
>luck. Has anyone encountered this problem and have a solution?
I don't use Visual Fortran, but I have encountered a similar issue in
Salford's Clearwin. I suppose it's possible the issue might be imposed
by the Windows API, rather than being compiler-specific (last time I
checked, Salford were a bit baffled by it), and I haven't checked
recently whether it's still an issue because it's easy to work around,
so FWIW ... the issue was/is related to the "alias" name given to the
icon (i.e. the name that the Fortran app uses to refer to the icon).
The application took/takes as the main window icon the one whose alias
comes first when they are ordered alphabetically; apart from that
special case, it didn't seem to use the alphabetical ordering. So now
I follow the well-known taxi firm strategy for trying to appear first
in the Yellow Pages, and always name my main window icon something
like "aaicon" ...
| |
|
| Andy -
I thought that may be it since 'childicon' is alphabetically before
'frameicon' BUT the Visual Fortran documentation is clear that those
are the references which must be used for a quickwin application.
| |
| Andy Spragg 2005-05-10, 3:59 pm |
| On 10 May 2005 07:53:11 -0700, "Mike" <mschecter@comcast.net> wrote:
>I thought that may be it since 'childicon' is alphabetically before
>'frameicon' BUT the Visual Fortran documentation is clear that those
>are the references which must be used for a quickwin application.
Documentation isn't always automagically correct ;-) but if it is in
this case, then /something/ else mustn't be.
Not very helpful, I know :-(
| |
| J DUDLEY 2005-05-10, 8:58 pm |
| The icons should have index values.
I think that the icon associated with index value 0 is used *always* as the
default program icon. If VF requires that the child icon must have index
value 0 then you can't work around this. With Visual Basic icon value 0 is
reserved - assigning to it in a resource file resulted in the program
running under Windows NT 4.0, crashing under Windows 95. You may find that
there are similar limitations with VF - in VB, within the user interface the
program icon was specified from an attached form, hence VB setting up icon 0
automatically.
"Mike" <mschecter@comcast.net> wrote in message
news:1115702472.935167.226360@o13g2000cwo.googlegroups.com...
> I've followed the documentation of assigning an imported icon for
> 'frameicon' and 'childicon'. Application works and the frame and child
> icons appear appropiately EXCEPT the child icon becomes the explorer
> application icon. I would like it to be the frame icon.
>
> Tried switching the icon definition order in the resource file with no
> luck. Has anyone encountered this problem and have a solution?
>
> Thanks,
> Mike
>
|
|
|
|
|