Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ER - only allow the app to run once
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00688594
Message ID:
00688929
Vues:
32
How about CreateEvent() (Ed Rauh's approach?) Just few lines of code...

>Hi Paul,
>
>>I decided to maximize it thinking that they may have goofed up the window position or something weird. I want them to be able to find my app ;-)
>
>So we need another property in cApp: nMultiInstanceMode (or whatever it should be called) = {0|1|2}. 0 = Allow multiple instances, 1 = Only one instance - Restore window of first instance, 2 = Only one instance - Maximize window of first instance.
>
>>OK, I just tested it and it (appears) to work. I added a property called cAppID to goApp; this stores my applications unique name. My new code looks like:
>
>Cool :) Thanks!
>
>Now we have to wait for Kevin to say that he's going to implement this ;-) OTOH, if he won't, this is something that could easily be put in a subclass of cApp.
>
>Armin
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform