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

Click here to load this message in the networking platform