Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screwy form icon problem
Message
De
25/01/2001 19:56:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00468885
Message ID:
00468887
Vues:
12
>I have an application where I want to use varying icons for the same form.
>
>Let's say when the user selects a certain menu option, the system determines the time of day and swaps .ICO files accordingly before opening the requested form. The form already has the 'Icon' Property set to a name that does not change. So I must rename the old .ICO file out and put a new file (under the same original name) in its place.
>
>The problem is that this does NOT work. I experience NO change in icons.
>
>When I build the .EXE I made sure to exclude the .ICO file from the build thinking that whenever the form ran it would get whatever matching ICO file was available.
>
>Why isn't this working?
>

Just a SWAG, but VFP is likely caching the icon when it's read, and not re-reading or re-rendering the icon when you switch files. Try:
CLEAR RESOURCES <i>name of the .ICO file</i>
whenever you make the change, before refreshing/reloading the form.

>Is the icon somehow built into the .EXE associated with each form so that I can't change it at run time?
>
>HELP!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform