Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal screen not modal
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Modal screen not modal
Miscellaneous
Thread ID:
00843938
Message ID:
00843938
Views:
50
Hi.
I am calling a modal screen but it is not staying on the screen and goes immediately back to the calling screen .

On my calling screen, I have 3 controls , 2 Text Boxes and a Button to call the modal screen.

Calling Form
------------
Text1 On the Lost Focus, I have a Thisform.Text1.SetFocus
depending on circumstances.
Text1
cmd1 Do form ModalForm

The problem is , when I load the calling form, it lands on Text1. If I innediately click on cmd1, it loads the modal form and then immedaitely goes back to the calling form, and then I cant get out without rebooting.

If I hit return at Text1 and then select cmd1 button to load the form, there is no problem.

I am assuming that the problem is the Set focus on the Text1 control, which is setting focus back to the calling form and even though the called from is modal, the setfocus over-rides this.


Would anybody have any suggestions on a way around this ?
Regards,

Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform