Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal form loses focus
Message
From
25/02/1997 07:22:32
 
 
To
24/02/1997 15:50:02
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00021756
Message ID:
00021913
Views:
36
>>I have a VFP 5.0 application using only top level forms with SCREEN set to off. I have a top level, modeless form, Form1, with a menu instantiated in it. From the menu I call a top level, modal form, Form2. From Form2 I can call a third top level, modal form, Form3, from one of two buttons. One button calls Form3 to insert a new record into a table after the user has entered data. The second button calls Form3 to edit existing data in the table. The only difference in the call is in setup code in the INIT of Form3. When Form3 is called to edit data everything looks fine. When Form3 is called to insert a new record, Form3 appears briefly, then Form2 regains the focus over Form3. I thought a modal form retained focus until released or until it spawned another modal form. All forms have ALWAYSONTOP set to .F.. What am I missing here?
>>
>>Thanks,
>>Bill
>
>It's just a suggestion: put Thisform.show() into Form3.Activate event. I know, it looks stupid, but I really saw situations where it worked.

Hi Edward,

Thanks. I will give that a try. But, as always, I would like to know what is happening and why, lest I be "bit" by it in some other form in the future.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform