Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Non-modal form remains on top?
Message
De
12/09/2005 15:34:03
 
 
À
12/09/2005 15:25:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
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:
01048920
Vues:
16
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

>James,
>Sorry, I don't understand.
>Cetin
>
>>Cetin --
>>
>>No, what I'm doing is making these forms non-modal (they WERE non-modal). My test-form is non-modal -- isn't that why I can give my mainform (also non-modal) the focus?
>>
>>How can my main form have focus but not be completely visible? (I have not set the AlwaysOnTop property.)
>>
>>Thanks,
>>
>>Jim
>>
>>
>>
>>
>>>>I have having my first go at using non-modal forms, instead of modal. I'm taking an existing application and modifying a couple of the forms that do not have data entry (actually, they just display a simple grid) to see how this works.
>>>>
>>>>All seems to be working well except for one thing that doesn't make sense: When I bring up one of these forms that I'm testing, and part of the main form is still visible in the background, I can click on the main form, giving it the focus, but the form I'm testing is still visible. Of course, I can move the form, or minimize it, but I expected it not to be visible.
>>>>
>>>>Clearly, I'm missing something. Perhaps the following settings are relevant?
_screen.visible=.F.
>>>>mainform.showwindow=2
>>>>mainform.desktop=.f.
>>>>
>>>>Thanks in advance
>>>
>>>That's the intended behavior of non-modal forms.
>>>PS: If you mean it covers your other form then check AlwaysOnTop property.
>>>Cetin
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform