Microsoft KB Archive/101152

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 15:02, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Windows 3.0 and Minimum-Sized User-Defined Window

ID: Q101152

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

WCOLS() returns a different value depending if FoxPro is running under Windows 3.0 in standard VGA mode or Windows 3.1 standard VGA mode.

If the code below is run in Windows 3.1 standard VGA mode, WCOLS() returns 8, as expected. If the same code is run in Windows 3.0 standard VGA mode, WCOLS() returns 11, which is wider than the requested window size.

This behavior occurs because Windows is enforcing a minimum size.

   DEFINE WINDOW test FROM 1,1 TO 10,10 ;
      SYSTEM FLOAT GROW ZOOM MINIMIZE TITLE 'test' ;
      FONT 'foxfont', 9
   ACTIVATE WINDOW test
   MODIFY WINDOW test CLOSE
   ST=ALLTRIM(STR(WCOLS()))
   WAIT WINDOW ST
   DEACTIVATE WINDOW test
   RELEASE WINDOW test

Additional reference words: FoxWin 2.50 2.50a KBCategory: kbprg KBSubcategory: FxprgGeneral


Last Reviewed: June 27, 1995
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.