PRB: Form with DeskTop=.T. Changes the Left or Top PropertiesID: Q141911 3.00 3.00b WINDOWS kbother kbprb The information in this article applies to:
SYMPTOMSWith the DeskTop property set to True (.T.), the Top and Left properties of a form may change if the form is moved programmatically.
WORKAROUNDIn the control that is used to move the form, the Left or Top properties of the form must subtract twice the original form position value from the new form position. Please see the "More Information" section for an example workaround.
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Example One1. Create a form, and set its DeskTop property to true (.T.). 2. Run the form and in the Command window type:
The form will move to position 100 but the form will also move up.
NOTE: A similar behavior occurs if, after the form is visible, the FoxPro desktop is moved and the form's Top property is changed. The form's Left property will be affected.
Example Two1. In the form's Click event, place this code:
2. Run the form, and note that the Example One behavior is exhibited.
3. Create two new properties for the form:
4. In the form's Init event, place this code:
5. Add a "Move to the Right" command button with the following code in its
6. Add a "Move to the Bottom" command button with the following code in its
7. Run the form and observe the behavior.
Additional reference words: 3.00 3.00b VFoxWin KBCategory: kbother kbprb KBSubcategory: FxotherGeneral
|
Last Reviewed: January 9, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |