Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Diabled Button Valid firing FPW 2.6 SPR running in VFP 5/6
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Diabled Button Valid firing FPW 2.6 SPR running in VFP 5/6
Divers
Thread ID:
00168218
Message ID:
00168218
Vues:
94
I have some multifunctional (Add, Show, Edit, Find) data screen programs (.spr) originally created in 2.6 and compiled and running in VFP 5.0 on NT 4.0.
In the program that controls the states of the fields and buttons on the screen I set the states as Enabled or Disabled depending upon the current function of the screen. I do this by setting a variable (eg lcState) as (En/Dis)abled and then refreshing the screen item with

SHOW GET btAdd &lcAddState.
SHOW GET btDel &lcDelState.
etc.

The problem is, in some states the command buttons are disable (and greyed-out) but when clicked their Valid clauses are fired! In fact it is as if the click is 'buffered' because if I click once, the valid is not fired until I click on another object; twice and the object fires once upon the second click, then again when clicking on another object.
On top of all of this, the behavior seems to happen in Update, Find, and Add mode, but not in Show mode.

Any ideas?

Thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform