Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextArea needs way to get text and to delete oldest lines #95

Open
RolandHughes opened this issue Nov 30, 2021 · 0 comments
Open

TextArea needs way to get text and to delete oldest lines #95

RolandHughes opened this issue Nov 30, 2021 · 0 comments

Comments

@RolandHughes
Copy link

All,

I could just be blind, but I cannot see any way with TextArea to actually obtain the text or delete oldest lines programmatically.

With other UI's when writing verification software you simply create a text area with a scroll bar and stream your output to it. Most offer a way of setting and getting the text (as well as appending) and a way of counting lines. Usually one sets a constant of 500-8000 for the scrollback limit. On the lower level UIs you have to count the lines and delete the oldest/front/top when you hit to scrollback limit.

I'm not seeing a way to do that with TextArea. If TextArea is in a VScrollPanel won't it just continue to grow until it exhausts all RAM?

Basically we are simulating terminal output. Touch screen, no keyboard or mouse. If there is something I can set with VScrollPanel that will let older text "just fall off the top" that would be cool too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant