Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Non-modal form remains on top?
Message
De
12/09/2005 16:38:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/09/2005 16:35:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Divers
Thread ID:
01048805
Message ID:
01048947
Vues:
17
Oh that explains on top problem.
Back to square one then. Why do you use ShowWindow=2 and screen = off. It sounds like what you want is screen=on and ShowWindow=0 forms.
If you want to go with ShowWindow then you'd need to track forms, hide, show them etc.
Cetin

>No -- the second form has showwindow = 1
>
>Changing it to 2 does create the behavior I expected (in terms off the second form disappearing when the first form gets focus), but there are two other new behaviors:
>1) The second form shows up in the windows task bar
>2) Minimizing the first (main) form doesn't minimize the second form.
>
>I had thought they would all disappear together.
>
>Am I barking up the wrong tree here?
>
>Thanks,
>
>Jim
>
>>BTW all forms have showwindow = 2 and not 1, right?
>>Cetin
>>
>>>Cetin --
>>>
>>>My main form is non-modal; by test form is non-modal. For both forms, AlwaysOnTop = .F.
>>>
>>>I bring up my main form, and then my test form. The test form is smaller, leaving some of the main form visible.
>>>
>>>If I click on any portion of the main form, it receives the focus; I can right-click for pop-up menus, etc, and it all works fine.
>>>
>>>HOWEVER, the test form remains on top; that is, clicking on the main form, and giving it focus, did not change the appearance of the test form in any way (except, I guess for the title bar, which goes gray.)
>>>
>>>Does this make sense?
>>>
>>>Jim
Ç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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform