Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label problem 1 Tab is not support
Message
From
12/08/2003 11:04:47
 
 
To
03/08/2003 14:48:53
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00816323
Message ID:
00819379
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform