Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Integer property * 15
Message
De
22/06/2011 18:01:44
 
 
À
22/06/2011 17:19:25
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01515589
Message ID:
01515610
Vues:
82
>
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 )
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform