Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Precise width in pixel of a String
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Precise width in pixel of a String
Divers
Thread ID:
00033669
Message ID:
00033669
Vues:
81
Hi,

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

I use the max(len..)) approach with Transform for the Inputmask
that gave me the correct caracter length but is there a way to determine the pixel length.

Exemple.
column: "123 456" = 7 car. * fontsize(9) = 69 but can fit in 60 pixels

The caption header is in bold
Header: "test" = 4 car. * fontsize(9)+1 = 40
^--Bold

Steve,
Thanks in advance for you suggestions
Lead programmer of the free MIS Info Video(Frontend/player), Info 2 MIS or visit me at Steve's Tech Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform