DOCUMENT:Q189721 11-DEC-1999 [foxpro] TITLE :BUG: ZOOM WINDOW MIN Does Not Minimize User-Defined Window PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:3.0,3.0b,5.0,5.0a,6.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a, 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== A user-defined window cannot be minimized after it has been defined unless it is active. RESOLUTION ========== The resolution is to assign the "name" property to the window and set the windowstate property of the window to "1" prior to activating the window. The code for the resolution is below. Remove the ampersands (&&) to view the correct behavior. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION ================ The Help file states the following in the ZOOM WINDOW command: A user-defined window can be minimized after it is defined. It doesn't have to be activated before you change its size. In the example below, the window does not minimize unless the commented code is added. Steps to Reproduce Behavior --------------------------- Run the following sample code: DEFINE WINDOW WinTest FROM 0,0 TO 40,40 TITLE "Test" ; CLOSE FLOAT SYSTEM ZOOM && NAME xCorrected ZOOM WINDOW WinTest MIN && xCorrected.WINDOWSTATE=1 ACTIVATE WINDOW WinTest *-- End of code REFERENCES ========== Visual FoxPro help; search on: "ZOOM WINDOW" (without the quotation marks) Additional query words: kbVFp300bug kbVFp500bug kbVFp600bug kbXBase kbvfp600 ====================================================================== Keywords : Technology : kbVFPsearch kbAudDeveloper kbVFP300 kbVFP300b kbVFP500 kbVFP600 kbVFP500a Version : WINDOWS:3.0,3.0b,5.0,5.0a,6.0 Issue type : kbbug Solution Type : kbnofix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.