APPdesigne​r中,可编辑文本框显​示文本内容后,如何编​程控制其滚动条,使得​可以定位到特定的内容

请问APPdesigner中,将可编辑文本框显示文本内容后,如何控制他的滚动属性?我想通过编写代码实现控制文本框的内容滚动到指定位置。看了下uitextarea属性,并没有滚动属性,这个需要如何解决啊?,多谢解答。

1 comentario

Walter Roberson
Walter Roberson el 26 de Sept. de 2021
Approximate translation:
In APPdesigner, after displaying the text content in the editable text box, how to control its scrolling properties? I want to control the content of the text box to scroll to a specified position by writing code. After looking at the uitextarea attribute, there is no scrolling attribute. How to solve this? , Thanks for the answer.

Iniciar sesión para comentar.

Respuestas (1)

ers Z
ers Z el 26 de Sept. de 2021

0 votos

老哥 解决没呀

6 comentarios

ers Z
ers Z el 26 de Sept. de 2021
Thank you very much. Your reply is very timely!
minlei qin
minlei qin el 26 de Sept. de 2021
The above solution is not what I want, but it might be helpful for you, because if you use the function scroll scroll to compare whether characters are the same or not, this function will not work if your scroll content is different characters
ers Z
ers Z el 26 de Sept. de 2021
是的,我的目的是让滚动条保持在最底端,一直显示最新的文本内容。你要实现的功能较复杂。
Walter Roberson
Walter Roberson el 26 de Sept. de 2021
Approximate translation:
Yes, my purpose is to keep the scroll bar at the bottom and always display the latest text content. The function you want to achieve is more complicated.
Huang Zhang
Huang Zhang el 7 de Sept. de 2023
可以用属性的scroller,比如调用app.EventLog.scroll("bottom")

Iniciar sesión para comentar.

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Preguntada:

el 29 de Oct. de 2019

Comentada:

el 7 de Sept. de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by