FIX: Position Error: Outline Control on Classed Pageframe
Article ID: 146223
Article Last Modified on 9/30/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition
This article was previously published under Q146223
SYMPTOMS
If an outline control is placed on a page of a pageframe and that pageframe
is saved as a class, the class is repositioned during its use in designing
a form. The outline control will first appear in its original design
location when the form is run. Then if you click an alternate tab of the
pageframe followed by clicking the original tab, the outline control jumps
to that location on the page in the form.
WORKAROUND
To correct this behavior in the design of the form, use the following
steps, which are based on building a test example as specified in the
"Steps to Reproduce Problem" section of this article.
- Place the following two commands in the form's Activate event:
Thisform.<the name of the class>.Pageframe1.activepage = 1
Thisform.refresh
- Place the following command in the Init event of the form:
Thisform.refresh
- Place the following command in the Init event of the pageframe of the
current instantiation of the class:
This.activepage = 2
- Place the following command in the Activate event of the page that
contains the Outline control:
This.refresh
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.
Additional query words: jump misplace
Keywords: kbbug kbfix kbvfp500fix KB146223