FIX: Timer is Visible on a Form After Using Graphics Methods

Last reviewed: October 20, 1997
Article ID: Q133100
3.00 3.00b WINDOWS kbtool kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

The timer control is visible on a form at run time when it should not be.

WORKAROUND

Set the coordinates of the timer control to an off-screen location. For example, add the following lines to the code in the form's Init event:

   thisform.timer1.left = -100
   thisform.timer1.top = -100

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a form named Test.

  2. Add a timer control to the Test form.

  3. In the form's Init event, type:

    thisform.width = 500 thisform.height = 500 thisform.fillstyle = 0 thisform.fillcolor = rgb(255,0,0) thisform.box(0,0,thisform.width,thisform.height)

  4. Save and run the form.

The form's Fillcolor property is set to a color other than the backcolor of the form, and a box is drawn around the area that contains the timer. When you run the form, a white rectangle appears where the timer is located.


KBCategory: kbtool kbbuglist kbfixlist
KBSubcategory: FxtoolFormdes fixlist5.00 VFoxWin buglist3.00 buglist3.00b
Additional reference words: 3.00 3.00b
Keywords : buglist3.00 buglist3.00b fixlist5.00 FxtoolFormdes vfoxwin kbbuglist kbfixlist kbtool
Version : 3.00 3.00b
Platform : WINDOWS
Solution Type : kbfix


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.

Last reviewed: October 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.