PRB: Displaying a Modal Form Causes the SSTab Control to Blank
ID: Q161972
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, versions 5.0, 6.0
SYMPTOMS
The SSTab Object ActiveX control is on a form that calls another modal
form. When the modal form is displayed, the SSTab control disappears from
the form that it is on.
RESOLUTION
If possible, use the Visual FoxPro PageFrame or do not make the second form
modal.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
MORE INFORMATION
The SSTab object is an ActiveX control provided with Visual FoxPro 5.0.
Before trying the Steps to Reproduce Behavior below, it is a good idea to
make sure the SSTab Object is available. To check this, follow these steps:
- On the Tools menu, click Options. Click the Controls tab.
- Click the ActiveX controls button. Also make sure the Controls check box
under the Show section is selected.
- Scroll down the list of controls until the SSTab Object is found. Make
sure the check box to the left of it is selected.
- If the SSTab object is not on the list, it should be reinstalled from
the Visual FoxPro CD-ROM.
The actual .ocx file for the SSTab Object can be found in the
Windows\System folder (if using Windows 95) or the Winnt\System32 folder
(if using Windows NT). It is named Tabctl32.ocx. It should be version
4.01.0000 and be 162,064 bytes in size. This information can be found by
displaying the properties of the .ocx file in Windows Explorer.
Steps to Reproduce Behavior
- Create a new form.
- Add an OLE Container Control to the form.
- In the Insert Object dialog box that appears when the OLE Container
control is added to the form, click the Insert Control button. Then
scroll down the Control Type list until the SSTab Object is found.
Select it and click OK.
- Add a push button to the form. Place the following code in the Click
method of the button:
DO FORM test2.scx
- Save this form as Test1.scx and close the form.
- Create another new form.
- Set the WindowType property of this new form to 1 - Modal.
- Save the new form as Test2.scx and close it.
- From the Visual FoxPro Command window, issue the following command:
DO FORM test1
- Move the form out of the top left corner of the screen, so you will be
able to discern the second form from the first when it is displayed.
- Click the button on the form to display the second form. The SSTab
Object should disappear at this point. Move the second form if
necessary to view the first form.
- Close the second form with the close box in the upper-right corner. At
this point the following error message may appear:
OLE error code 0x80004005: Unspecified error.
Additional query words:
Keywords : kbVFp kbVFp500bug kbVFp600bug FxtoolFormdes
Version : 5.00 6.00
Platform : WINDOWS
Issue type : kbbug