Discussion:
How to get lines on scrren in line wrap mode?
minico
2012-12-19 11:03:37 UTC
Permalink
Hi,
I use *SCI_LINESONSCREEN* to get lines on screen, it seems not work in line
wrap mode?
*SCI_GETFIRSTVISIBLELINE* also not work in line wrap mode?
Then how can I get this two value in line wrap mode?
Thank you!
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scintilla-interest/-/ftJD6e0F2c8J.
To post to this group, send email to scintilla-***@googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
Edwin
2013-11-23 15:20:59 UTC
Permalink
I noticed the same problem.
Post by minico
Hi,
I use *SCI_LINESONSCREEN* to get lines on screen, it seems not work in
line wrap mode?
*SCI_GETFIRSTVISIBLELINE* also not work in line wrap mode?
Then how can I get this two value in line wrap mode?
Thank you!
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Chad Wilson
2013-12-09 13:16:28 UTC
Permalink
Hello minico,
I have run into a similar problem. I am writing an IRC script using
Scintilla and I had went a different route but here is what I found out.
There is a slight delay after adding text that does wrap from the control
and if you try to get the amount of lines right away it will give you the
total lines before the wrapping has taken effect. The only way that I have
been able to do anything is to wait until *SCN_UPDATEUI *has returned and
then do the *SCI_LINESONSCREEN* to get the total number of lines, *SCI_GETFIRSTVISIBLELINE
*then from that line forward use *SCI_WRAPCOUNT(int docLine) *to get the
number of lines that each line consumes. I wish that there was an easier
way to have the number of lines on screen or the last visible line but
currently there is not. It would make my life a whole lot easier. I hope
that this helps in some way.
Post by minico
Hi,
I use *SCI_LINESONSCREEN* to get lines on screen, it seems not work in
line wrap mode?
*SCI_GETFIRSTVISIBLELINE* also not work in line wrap mode?
Then how can I get this two value in line wrap mode?
Thank you!
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...