on 08-06-2008 12:16 PM
Hello,
Is there is a way to show text in a textedit element without scroll?
I tried to calculated the number of lines and dynamically change the rows property, but the problem is that I limited the cols element so if I type a long word with a length that longer than the cols limit I can't calculated it as a new line.
Best Regards,
Gershon Osmolovsky.
Gershon Osmolov,
Its possible to display the textEdit without scrolling by changing/controlling cols & rows properties of textedit. Bind these properties with context attributes and calculate size of the text string, depend upon that you can set the value of cols & rows.
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ram,
I bind the property of the rows of textedit with context attribute, but i want the cols property will be default.
my problem is that i can't to calculate the rows if the user doesn't press enter.
for example:
if the user write this, i can't calculte it as a row.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
but this i can, because the enter key is pressed.
xxxxxxxxxxx
xxxxxxxxxxx
Best Regards,
Gershon Osmolovsky.
Hi,
Try setting the property wrapping so that it wraps and your logic for the rows will do the rest.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ayyapparaj,
I don't want any scrolls. not the vertical and not the horizational.
So I can't change the wrap value from 'off' to 'soft'.
PradeeP - i want to calculate the number of rows in a textedit.
i want to do it because i don't want scrolls.
my problem is if i disable the horizational scroll by setting the wrap property to 'off', and the word is longer than the cols limit I can't to calculate it as row.
I don't care the scrolls will be shown, I just want to see all the text without the use of the scrolls
Best Regards,
Gershon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.