Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG? ButtonClick not executing when messagebox encounter
Message
De
24/08/1998 08:13:20
Wim Dieke
Tranquility Bv
Almere, Pays-Bas
 
 
À
17/08/1998 11:10:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00127368
Message ID:
00129264
Vues:
42
HI Bob,
Funny, The last sentence in your message says:
>once message box is clear the button click event code will fire.
This is the problem: it does not! my whish is that it would (and common sence says it should.)
Remember: The valid event is triggered by the lostfocus event. (agee), but the next event that should fire is the click event of the button that caused the lostfocus event. This normally happens indeed, but if there is a messagebox before the click event, the event is never fired. I would classify this as a bug in foxpro. wouldn't you agree?
KR. Wim.


>>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
---
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