Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to attach icon programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00863059
Message ID:
00863163
Vues:
10
Thanks Larry - I guess I am just gonna have to start getting comfortable with using VFP's project GUI at some point in my career! No time like the present! Thanks and happy New Year - eat a Crab Cake for me!

>>I understand that to change my VFP 8 EXE's icon from the fox, to someother icon, I would select the "attach icon" in the project manager.
>>
>>I do my builds programatically:
>>
BUILD PROJECT MyProj RECOMPILE FROM MyProj.prg;
>>MyProj1.PRG;
>>......
>>MyProj2.SCT
>>BUILD EXE MyProj FROM MyProj
>>
>>Any idea as to how to include an attach icon in this? Will it swap my VFP 8 EXE's fox for the "attached" icon?
>
>Terry,
>You would need to create a ProjectHook and link it to your project. In the BeforeBuild event of the Projecthook, you could specify the Icon property of the _VFP.ActiveProject.
>
>Because it appears you are blowing away the project file every time using the BUILD PROJECT command, you probably have to jump through a couple of extra hoops. Off the top of my head they would be:
>
>1. Issue a Modify Project MyProject NoWait
>2. Set the ProjectHookClass and ProjectHookLibrary properties of _VFP.ActiveProject.Project
>3. Keyboard a Ctrl+W to save the project
>4. Issue a Build EXE command
>
>The BeforeBuild event should be triggered after the ProjectHook is associated with the project.
>
>HTH.
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform