Thanks for your work.

--actboy168

发件人: Antonio Scuri
发送时间: 2018年10月20日 1:35
收件人: IUP discussion list.
主题: Re: [Iup-users] 
(Featurerequest)SupportSCI_SETXCARETPOLICY/SCI_SETYCARETPOLICY

 Hi,

 Just added and committed to the SVN:

CARETXPOLICY/CARETYPOLICY (non inheritable): These set the caret policy. The 
value can be a combination of "SLOP", "STRICT", "JUMPS" and "EVEN" using "|" as 
separator. When SLOP is used the attribute CARETSLOP defines an unwanted zone 
for the caret. This zone is defined as a number of pixels near the vertical 
margins, and as a number of lines near the horizontal margins. (since 3.26) 

Best,
Scuri
 

Em seg, 8 de out de 2018 às 06:25, actboy168 <actboy...@gmail.com> escreveu:
CARET_SLOP can specify the area where you don't want the caret to arrive.
 
> When the caret position changes, if the caret is not visible, the scrollbar 
> position will also change to make it visible. The caret can appear in the 
> third line of the window.
 
This effect can be achieved like this
IupScintillaSendMessage(ih, SCI_SETYCARETPOLICY, CARET_SLOP, 3)
 
CARET_STRICT allows the caret policy to take effect at all times, not just when 
the caret becomes invisible.
 
CARET_JUMPS is not as extreme as CARET_STRICT, it will cause the scrollbar to 
start moving after the caret exceeds 3 times CARET_SLOP.
 
CARET_EVEN allows you to have areas on the bottom or right side that you don't 
want caret to reach.
 
--actboy168
 
发件人: Antonio Scuri
发送时间: 2018年10月3日 1:50
收件人: IUP discussion list.
主题: Re: [Iup-users] (Feature 
request)SupportSCI_SETXCARETPOLICY/SCI_SETYCARETPOLICY
 
  I have no idea on how to do that. I don't think that SCI_SET*CARETPOLICY 
would do that either. But you can test it using IupScintillaSendMessage.
 
Best,
Scuri
 
 
Em seg, 24 de set de 2018 às 23:28, actboy168 <actboy...@gmail.com> escreveu:
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 <actboy...@gmail.com> 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
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users
 
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users
 
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to