https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/101152&feed=atom&action=history
Microsoft KB Archive/101152 - Revision history
2024-03-29T13:43:54Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/101152&diff=46335&oldid=prev
3155ffGd: importing KB archive
2020-07-18T15:02:09Z
<p>importing KB archive</p>
<p><b>New page</b></p><div>{|<br />
|width="100%"|<br />
= Windows 3.0 and Minimum-Sized User-Defined Window =<br />
<br />
'''ID: Q101152'''<br />
<br />
The information in this article applies to:<br />
<br />
* Microsoft FoxPro for Windows, versions 2.5 and 2.5a<br />
<br />
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.<br />
<br />
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.<br />
<br />
This behavior occurs because Windows is enforcing a minimum size.<br />
<br />
<pre> DEFINE WINDOW test FROM 1,1 TO 10,10 ;<br />
SYSTEM FLOAT GROW ZOOM MINIMIZE TITLE 'test' ;<br />
FONT 'foxfont', 9<br />
ACTIVATE WINDOW test<br />
MODIFY WINDOW test CLOSE<br />
ST=ALLTRIM(STR(WCOLS()))<br />
WAIT WINDOW ST<br />
DEACTIVATE WINDOW test<br />
RELEASE WINDOW test<br />
</pre><br />
Additional reference words: FoxWin 2.50 2.50a KBCategory: kbprg KBSubcategory: FxprgGeneral<br />
|}<br />
<br />
{|<br />
|width="100%"| <br /><br />
Last Reviewed: June 27, 1995<br /><br />
<span>© 1999 Microsoft Corporation. All rights reserved. Terms of Use.</span><br /><br />
|}</div>
3155ffGd