Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG? ButtonClick not executing when messagebox encounter
Message
De
17/08/1998 10:14:45
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:
00127390
Vues:
26
>>When the textbox has focus and i click on a button on the form, the messagebox appears, and the click event of the button is not executed if i click ok on the messagebox. When pressing the space key the messagebox dissapears and the click event is executed.
>
>Your click event shouldn't be firing in either case (whether you click OK in messagebox or hit spacebar). I tried it in both 3.0 and 5.0 and in both cases (clicking OK or hitting space bar when OK had focus in messagebox) and in both versions, the command button that I attempted to click merely received focus (but the click event didn't fire). Whether or not it SHOULD is another question! I'm not sure why in your situation that pressing the spacebar in the messagebox allowed the Click event in the button you attempted to click fire!

I tried it several times. It seems it is at random that the click event fires when pressing the spacebar. I'm beginning to think that this kind of behavior is getting annoying. But the big question remains: How can i get the click event to fire always (in my opinion it should always fire if the valid event returns .T., whatever code you put in it. After all i clicked the button so i generated a sequence of events that should be sequencially be handled.)

KR, Wim
---
Life is like a box of chocolates
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform