DOC: Incorrect Examples on Pages 69-75 of Developer's GuideLast reviewed: January 30, 1997Article ID: Q136070 |
The information in this article applies to:
SUMMARYThe example that create a VCR control in the Visual FoxPro "Developer's Guide" on pages 69-75 creates a subclass of the VCR control. When an instance of VCR2 is created on a form, the container is not sized correctly; it is much wider than the form. The following conditions lead to this problem:
Fix StatusThis documentation error has been fixed in Visual FoxPro 5.0 for Windows.
MORE INFORMATIONTo work around this problem, ensure that one of the conditions listed in the "Cause" section of this article is not met. In particular:
DEFINE CLASS vcr2 as vcr
ADD OBJECT cmdQuit AS COMMANDBUTTON WITH ;
Caption="Quit", ;
Height=2, ;
Width=6.8
PROCEDURE INIT
This.CmdQuit.Left=This.Width+.2
This.Width=This.Width+This.CmdQuit.Width+.2
ENDPROC
PROCEDURE cmdQuit.CLICK
Release Thisform
ENDPROC
ENDDEFINE
In addition to the problem listed above, the example contains another
inaccuracy that should not affect your form. Pages 69 and 71 define the
Scalemode property as a property of a CommandButton and a Container.
However, the Scalemode property applies to forms and toolbars only. It does
not apply to control or container objects.
REFERENCESFor more information about foxels and pixels, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q106161 TITLE : How to Convert Screen Object Positions Between Platforms ARTICLE-ID: Q129208 TITLE : Pixel Replaces Foxel as Default Scale Value in Design Mode |
KBCategory: kbprg kbdocerr kbdocfix
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |