Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default command button
Message
De
07/01/2000 16:25:56
 
 
À
07/01/2000 16:12:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00314543
Message ID:
00314750
Vues:
28
>>I don't see a corresponding event that fires when the container deactivates.
>
>UIEnable handles both the enable and disable. It passes a parameter telling you if its going or coming (goes against the rest of the event model, but hey)
>

DOH!

>>It also doesn't fire the first time the page is activated if it happens as a result of the form's initial activation.
>
>True, but easy to fix (my pageframe does a UIEnable on the first page at startup anyway)

Then there's the philospohical argument of who knows what the default action for the page's content should be. Is the container 'aware' of which member of its content should have the default, or should the control assert its 'defaultdom'? I'd tend to believe that the control doesn't know enough - there might be several controls that might be valid default actions depending on the context of operation - for exampe, if you have an edit/non-edit state distinction, when in 'edit mode', the Save button might be the default, while if non editing, either the 'Add' or 'Edit' button is the default. The container in this case would be aware of the state, and ought to be the one telling a given control to assume the default mantle.
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