Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal screen not modal
Message
From
29/10/2003 08:19:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00843938
Message ID:
00844010
Views:
28
>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

Gerard,
Might that be 'mnodal form' is a top level form ? If so top level forms cannot be modal (but In Top Level can be).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform