When the caret position changes, if the caret is not visible, the scrollbar 
position will also change to make it visible. This is the default caret policy. 
The caret policy affects the position of the caret in the window.

For example, now that caret is on line 1, when I change caret to line 500, the 
caret and scrollbar positions change at the same time. The caret will be on 
line 500, the first line in the window, like this
-----------------------------------
500 | <- caret
501
502
503
504

But I hope that the caret can appear in the third line of the window, like this

-----------------------------------
498
499
500 | <- caret
501
502

--actboy168

发件人: Antonio Scuri
发送时间: 2018年9月25日 5:33
收件人: IUP discussion list.
主题: Re: [Iup-users] (Feature request) 
SupportSCI_SETXCARETPOLICY/SCI_SETYCARETPOLICY

  Hi,

  Using CARET attribute you can position the caret anywhere on the text, not 
just on top or right. To position in the center you simply use the half of the 
number of characters in the line.

  CARET*POLICY is not for that purpose.

  Or I didn't understand what you want to do...

Best,
Scuri


Em ter, 18 de set de 2018 às 00:56, actboy168 <[email protected]> escreveu:
Now using CARET or SCROLLTOCARET, it will move to put caret on top/on right. I 
want to make it in other locations, e.g. in the center.
 
https://www.scintilla.org/ScintillaDoc.html#SCI_SETXCARETPOLICY
 
 
--actboy168
 
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to