cancel
Showing results for 
Search instead for 
Did you mean: 

TextEdit without scroll

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member189631
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Try setting the property wrapping so that it wraps and your logic for the rows will do the rest.

Regards

Ayyapparaj

Former Member
0 Kudos

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.

PradeepBondla
Active Contributor
0 Kudos

Hi,

Its been posted just 30 mins back in same forum

its not possible to delete the scroll from textEdit UI.

and I didnt get what you are asking in second paragraph....

PradeeP