Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to align the text in editbox using diff. fonts?
Message
 
To
02/05/2000 07:00:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00365000
Message ID:
00365440
Views:
19
Ashok,
Two answers. First, to show spaces in a UT Message use the < pre > and < /pre > tags (remove the spaces inside the brackets). Here's an example:

10 spaces before this line
10 spaces before THIS one also but enclosed in PRE tags.
Right-click on the message and look at View Source to see how this works.

Second, I imagine that when you weren't using Courier New in your editbox you picked a proportional font like Arial. With proportional fonts each letter is a different width so the same number of 'spaces' or 'letters' will give different widths.

Look for non-proportional fonts to display your text aligned as you wish it.

HTH
Barbara

>In previous message, I put 11 spaces before 222 in the first result but it does not show spaces before 222. So please consider as follows.
>
>>When I set editbox's fontname = 'Courier New', then the alignment
>>is ok like this.
>
>MyLabel1 : 111
>XXXXXXXXXXX222
>
>(Here X means space)
>
>>But when I set other fonts in edit box, It is not aligned properly like this.
>
>MyLabel1 : 111
>XXXXX222
>
>(Here X means space)
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform