Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label problem 1 Tab is not support
Message
De
12/08/2003 11:04:47
 
 
À
03/08/2003 14:48:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00816323
Message ID:
00819379
Vues:
9
>Hi,
>
>If i set:
>
>
>label.Caption = 'Ciao'+CHR(9)+'Ciao'
>
>
>the CHR(9) is not convert to three spaces, like editbox.
>
>Is a bug or need a specific request on wish list ?
>
>This can seem a small problem, but I use one label in order to implement the autoresize of a EditBox.
>
>The workaround is simple STRTRAN(...,CHR(9),SPACE(3)),
>but true trouble is one.
>
>Fabio

Fabio,

As you know, a tab is not always 3 spaces, it depends on the context

Add an assign method to your label class and do a bit of work in there to convert the tab to the appropriate # of spaces.
It can be difficult though when you are dealing with proportional fonts
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform