FIX: Click Event Of Straight Line Not FiringLast reviewed: October 29, 1997Article ID: Q140566 |
3.00
WINDOWS
kbprg kbbuglist kbfixlist
The information in this article applies to:
SYMPTOMSWhen a horizontal or vertical line object is on a form and there is code in the Click event of the line, the code will not execute if the line Width property of a vertical line or Height property of a horizontal line is set to 0.
WORKAROUNDFor a verticle line, set the line object's Width property to at least 1 and the BorderWidth property to at least 2. If the BorderWidth property is less than 2, the vertical line will not be displayed correctly. For a horizontal line, set the Height property to at least 1 and the BorderWidth property to at least 1 (the default).
STATUSMicrosoft 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.
MORE INFORMATIONThe problem (the vertical line has to have a BorderWidth value of at least 2 to display correctly), does not appear for diagonal lines. This is why setting the line width or height corrects the problem. The line is actually being angled slightly. This angling is not visibly apparent even in large displays or form sizes. However because the borderwidth has been increased a hairline thickness is not possible. This characteristic is more noticable with vertical rather than horizontal lines because of the way the monitor displays graphics.
Steps to Reproduce Problem
Steps to Work Around the Problem
|
KBCategory: kbprg kbbuglist kbfixlist
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |