Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Anchor vertical center with odd height
Message
 
 
To
08/03/2005 07:49:11
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00993310
Message ID:
00993584
Views:
15
>>It's not a bug. Your assumption that shape is centered horizontaly from the beginning is incorrect.
>
>Where I have written this ???????

DEBUGOUT "start centered", ...

>
>>The shape center is one pixel closer to the top border of the form than to the bottom.
>
>Sergey, please,
>run the code with NNHEIGHT 1, 2 and 3, 4
>With 2 it is ok,
>with 1 it is not moved
>with 3 it is moved to a incorrect position
>with 4 it is correct
>......

It's moved to the correct position according to Anchor = 512 and original position of the shape center. The problem is that center of the shape with odd height is 1 pixel closer to it's top border than the bottom one.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform