Docked form and a Modal (Dialog)  
Author Message
Vasim





PostPosted: Visual FoxPro General, Docked form and a Modal (Dialog) Top

Hi All,

I was wondering if this is an expected behavior:-

I have a docked form in the main VFP screen, the docked form has a “Options” button that calls an “Options Form”, the “Options Form” is Modal and the AlwaysOnTop property is set to .T., however, the “Options Form” is displayed behind the Docked form, and the Docked form can be resized even when the Modal “Options Form” is displayed. Any insight would be appreciated.



Visual FoxPro1  
 
 
Tamar E. Granor





PostPosted: Visual FoxPro General, Docked form and a Modal (Dialog) Top

Docked forms are always on top by Microsoft's definition.

Tamar

 
 
Vasim





PostPosted: Visual FoxPro General, Docked form and a Modal (Dialog) Top

Hello Tamar,

Thank you for the reply, I could see how that would make sense, however, a Modal Form show be on Top no matter what (I think), additionally; for example: in VS.NET the Solution Explorer, Dynamic Help etc. are docked, and when I select Help - About Microsoft ... from the menu the dialog is placed on top of all the forms.


 
 
Vasim





PostPosted: Visual FoxPro General, Docked form and a Modal (Dialog) Top

Hello Tamar,

I was able to resolve this issue by setting the Desktop = .T. property of the Modal form.

It now displays on top - I guess after all these years I am still learning Visual FoxPro :)