TGTextView scrolling issue

Hello Rooters,

I am using a TGTextView to display log messages. When several messages have been put into the TGTextView, a scrollbar appears. When additional messages are put in, they appear below the visible text. In order to see them the user must scroll down.

Is there an option that can be set in TGTextView that makes the latest line visible to the user, without scrolling down?

Thank you

Lutz

Hi Lutz,

Here is an example :

fTextView->AddLine(text);
if(fTextView->ReturnLineCount() > visible_lines)
    fTextView->SetVsbPosition(fTextView->ReturnLineCount());

HTH.
Cheers, Bertrand.