Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Integer property * 15
Message
From
23/06/2011 08:00:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/06/2011 18:01:44
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01515589
Message ID:
01515679
Views:
83
>>
oln=CREATEOBJECT("label")
>>oln.Top=1.5
>>?oln.Top
>>Not quite what you'd expect, eh? Try with other non integer values, even 1.0.
>>
>>It seems as if the controls instantiated this way, without a parent, accept decimal values as foxels and recalculate them into pixels immediately.
>>
>>This may be as old as 3.0, and I guess this is 56th time someone publishes it as a discovery :). Took me only 20 minutes to fix my code around this.
>
>I get a multiplier of about 16 i.e.
>
>NewTopValue = FLOOR( OldTopValue * 16 )
>
I checked for some values around 7 (7.0 to 7.5) and it was about 15 in that case. I guess that's about the foxel value for Arial 9 or whatever is the default font for base classes.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform