Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Window contents while dragging / resizing
Message
De
07/02/2014 11:38:42
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
06/02/2014 09:42:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01593391
Message ID:
01593648
Vues:
34
>Yes, I thought of that. But again, I always rule out mucking with system-wide settings.

For once I agree with both of you. As the old saying goes, if you watnt to do something wrong, do it right.

So if it's a system-wide setting and you don't have any other option but to change it temporarily, double and triple check that you've restored it before leaving, no matter how and why you left. Wrap it in a class, with the revert behavior in the .destroy(), make it a local instance in the caller, make sure it neatly does its thing when an error happens, or when app loses focus. In case of a C0005... find a way to say you're sorry.

>>With you on not changing Windows settings on the users machine willy-nilly. But an alternate approach might be to change the setting at start of the action, resetting when manual (mouse-pressed!) task is done. Existing danger opportunity of app erroring out while dragging without calling a reset function in error handler or machine blue-screening, sure, but might be handled with special reset code on next app start - even down to including a message about not resetting due to error and reccommending reset via app. ***Not*** saying I think this is a prudent way in general ;-)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform