Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TextArea and TextField Classes

 
Sushma
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If i create a TextField with 5 columns and a TextArea with 6 rows and 7 columns what would be the display, i mean how many characters would i see if i had created them with a 20 letter( as in "abcdefghijklmnoprere") text???
thanks
Sushma
 
Mike Broad
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The characters you see is going to depend on the font you use. Fixed width fonts would show 5 characters across the TextField and 7 across the TextArea. The remaining characters would scroll off to the right.
If you use variable-width font then the number of characters displayed depends on the letter you are writing. For example you would see a lot more i's than you would see w's.
-Mike
 
Deepa sivasankar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For fixed width font, the number of characters is the size of the text field. For variable width font , it is the average width of the all the characters in the text field.
Hope this helps.
 
Sushma
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank u... Deepa and Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic