PRB: Toggling the TitleBar Property Off and On Causes the Form to Resize (241090)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q241090 SYMPTOMS
Changing the TitleBar property of a form programmatically causes the Width property of the form to be increased by two every time the TitleBar property is toggled off and on. This gradually affects the size of the form. The behavior occurs at both Development and run time.
RESOLUTION
To work around this problem, store the initial value of the form before attempting to toggle the TitleBar, and replace the value after the toggle:
nFormWidth = ThisForm.Width && Saves the current Form Width
ThisForm.TitleBar = 0 && Hides the TitleBar
ThisForm.TitleBar = 1 && Shows the TitleBar
ThisForm.Width = nFormWidth && Sets back the Form Width to the original value
Modification Type: | Major | Last Reviewed: | 9/15/1999 |
---|
Keywords: | kbContainer kbCtrl kbDSupport kbOOP kbprb KB241090 kbAudDeveloper |
---|
|