Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG? ButtonClick not executing when messagebox encounter
Message
From
24/08/1998 08:13:20
 
 
To
17/08/1998 11:10:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00127368
Message ID:
00129264
Views:
39
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform