Skip to content

How to show last lines of text in a TextEdit component? #2760

Closed Answered by ogoffart
Argent77 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the viewport property of the TextEdit:

                logger.viewport-y = logger.visible-height - logger.viewport-height;

I also recommand making a new function rather than re-using the edited callback, but you can still use the edited callback if you like

SlintPad

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Argent77
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants