Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Who's right, VB or VFP?
Message
From
08/07/2002 15:43:50
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
08/07/2002 14:00:22
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00676246
Message ID:
00676328
Views:
24
>I'm using a VFP 6.0 shape on a form and set it's FillStyle to 4 - Upward Diagonal. This sets a pattern of parallel lines that have a positive slope (from lower left to upper right).
>
>When I do this in VB6, it fills with a negative slope (upper left to lower right).
>
>Which pattern is correct for an "Upward Diagonal"?

Mike,

From a math article I was able to find, "the slope computed as m = (y2 - y1) / (x2 - x1)." If you set the left-most part of the line at (0, 0) then a lower left to upper right line has a positive slope due to the fact that both the x and y values are increasing, where an upper right to lower left line has a negative slope (y goes from 0 to -something, while x increases). I'd say that a line with a positive slope goes "upward" and a line with a negative slope goes downward.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform