Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG? ButtonClick not executing when messagebox encounter
Message
De
17/08/1998 11:10:00
 
 
À
17/08/1998 10:45:48
Wim Dieke
Tranquility Bv
Almere, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00127368
Message ID:
00127434
Vues:
36
>Try this: Place 1 textbox on the form with valid code: Messagebox('Something') Also place a button on the form with click code : Messagebox("Save y/n",32+4) The save y/n messagebox will never appear when the textbox has focus. This is the problem: I want the click event to fire.
>
>KR, Wim.

I don't think it will EVER work the way you want it to... Are you saying you want the Buttons Click to fire, but not the text boxs lostfocus? Not gonna happen.

Why don't you move the validation code to the valid event. This is only fired if the value of the textbox was changed.

What you are seeing makes sense... remember a msgbox is modal... here is what you are getting..

press button...

since textbox has focus...

textbox::losefocus <<-- fires... displays modal message box

once message box is clear the button click event code will fire.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform