Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/101152

From BetaArchive Wiki

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.