SCI_SETYCARETPOLICY(CARET_SLOP | CARET_STRICT | CARET_EVEN, 2);
But without the top and left margins affected if possible.
Also, is it possible to enforce this kind policy when placing the caret through mouse and not only by keyboard?
Héctor A:
> Is it possible to set a caret policy for only the right and bottom edges?
So the document is never scrolled from moving the caret up?
> Also, is it possible to enforce this kind policy when placing the caret through mouse and not only by keyboard?
You can call SCI_ENSUREVISIBLEENFORCEPOLICY after mouse clicks.
Neil