PRB: SearchForm from Wizstyle.vcx Displays Behind Desktop FormID: Q141394 3.00 3.00b WINDOWS kbtool kbprb The information in this article applies to:
SYMPTOMSIf the Desktop property of a form is set to true (.T.) and either the txtbtns, picbtns, or verttxtbtns classes from the Wizstyle.vcx Visual Class Library are added, the SearchForm will be displayed behind that form whenever the Find button is clicked.
CAUSEThe purpose of setting the Desktop property of a form to true is to allow that form to be contained anywhere on the Windows Desktop. Therefore, the main Visual FoxPro window will be in the background behind the form. When the Find button of the txtbtns, picbtns, or verttxtbtns class of Wizstyle.vcx is clicked, this creates an instance of the SearchForm class, also of Wizstyle.vcx. The Desktop property of SearchForm is false (.F.), indicating that it is to run within the main Visual FoxPro window. Therefore, it will be displayed behind a form with a Desktop property of true (.T.).
RESOLUTIONEither of the following resolutions can be used:
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorNOTE: The following example is depends on the Desktop property of the SearchForm class of Wizstyle.vcx Visual Class Library being false (.F.), which should be the case unless SearchForm has been modified. 1. Create a new form, and add a table to its Data Environment. 2. Change the size of the form such that its Height property is 180 or 3. Change the form's Desktop and AutoCenter properties to true (.T.).
4. From the form's Data Environment, drag any or all of the table's fields
5. Use the View Classes tool of the Form Controls Toolbar, and click Add.
6. Select Wizstyle.vcx located in the Wizards subdirectory of the Visual 7. Add the txtbtns class to the form.
8. Save, Close, and use the DO FORM command to run the form. 9. Maximize the main Visual FoxPro window to cause the SearchForm to be Additional reference words: 3.00 3.00b VFoxWin
KBCategory: kbtool kbprb
KBSubcategory: FxtoolSbuilder
|
Last Reviewed: December 21, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |