Greetings,
I am trying to center a particular line in the center of the control. I have tried the following :
CurrentLine = Line; DisplayText->CaretY = Line; DisplayText->EnsureCursorPosVisibleEx(true); DisplayText->Invalidate();
The "EnsureCursorPosVisibleEx" method does not seem to work, even when forcing the Middle flag to true.
Does anyone have any ideas on how to do this ?
Thanks! -Lenny
Log in to post a comment.
Greetings,
I am trying to center a particular line in the center of the control. I have tried the following :
CurrentLine = Line;
DisplayText->CaretY = Line;
DisplayText->EnsureCursorPosVisibleEx(true);
DisplayText->Invalidate();
The "EnsureCursorPosVisibleEx" method does
not seem to work, even when forcing the Middle flag to true.
Does anyone have any ideas on how to do this ?
Thanks!
-Lenny