Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Diabled Button Valid firing FPW 2.6 SPR running in VFP 5/6
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement