Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Precise width in pixel of a String
Message
 
À
27/05/1997 09:16:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00033669
Message ID:
00033743
Vues:
40
> > >I want to determine the precise width in pixel of a string. > >In my Grid class, I want to optimize the space of the columns > >without cutting the header's caption > You can calculate precize pixel length using FONTMETRIC(), but just for > proportional font. Don't forget that some people still use Large fonts (one of our customers does, and this screws up all of my form layouts), and that the thumbwheel control on the right will be four pixels wider than if using Small fonts. IOW, also use SYSMETRIC() to get the actual useable space inside the grid. -- -- Paul Russell Software Kinetics Ltd. | Phone: (902) 481-4582 Fax: (902) 468-3679 201 Brownlow Avenue | Office: Paul.Russell@SofKin.ca Dartmouth | "The best evidence that time travel will never be Nova Scotia, Canada | possible is that we have not been invaded by B3B 1W2 | hordes of tourists from the future." - S. Hawking "Use technology because it's appropriate -- except in the case of 'Java' then just use it 'cause it's cool!" - Paul Russell
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform