G4P GTextArea scroll to appended text

edited August 2017 in Library Questions

I am using GTextArea with scroll bars and appendText() to display log line data as it is created. Lines of text are added without problem. But I can't get the GTextArea to scroll down automatically as each new line is appended to the control. I can scroll manually using the scroll bar or caret and keyboard but I want the most recent line to be shown without user interaction. Is there a way to force the automatic behavior I want?

Answers

  • This appears to be a bug in G4P and unfortunately there is no work around available to you. I simply have to find and fix the bug. :((

    I have started working on finding a solution to be included in the next release. Please raise a ticket on Sourceforge.

    Thanks.

  • Answer ✓

    V4.1.4 has just been released which fixes this problem.

    It may take a day or two before Processing detects the new version and makes it available through the IDE.

  • @quark, thanks for the fix. Much appreciated. I downloaded the update from Sourceforge and it works perfectly! Thanks again.

Sign In or Register to comment.