Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM: Grid changes my currently selected area/alias
Message
De
16/03/2006 16:55:03
 
 
À
16/03/2006 16:45:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01105063
Message ID:
01105099
Vues:
24
>All my forms already use a private datasession. The problem is that the current alias has been changed automaticly by anyone of the grid events. Even changing the column width changes the alias automaticly.
>
>There are times when I wan't the grid to have the focus while the user interacts with it but I don't wan't it to automaticly change the alias to its recordsource because another controls event can fire if it was queud by windows or if the user moves the mouse around.
>
>Does anyone know how to prevent the grid from automaticly changing the current alias to its own recordsource?
>
>Or does anyone have an idea on how to detect the automated alias change so I can reset it?

You might try saving the current selected alias in each form's deactivate event; on the activate event reset the selected alias. If these can be fired independent of the selection of forms (like due to a timer event), then I would manage each form's alias at the _screen level via a custom property and then each code would have to get the alias from this custom property and set as current before processing.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform