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