i wonder if it possible to know if scintilla is currently wrapping?
and/or
if wrapping is done 'up to doc line N' ?
is there any call for that or something from which I could deduce that?
There is no simple direct way to determine this. You could get an
idea by polling with SCI_VISIBLEFROMDOCLINE, correlating against
modification notifications and when a line beyond N has changed or no
doc lines have changed visible line for some period...
ok, I imagine I could do that, that's a bit cumbersome however...
Platform-specific code could check for the idler being turned off
in SetIdle(false) although there may be other tasks added to the idler
in the future. On Windows there is a timer and on GTK+ there is an
idle function and I expect there are ways to check if these are
active. If there's a good use case then there could be a query API.
hum, I going to dig a bit. I feel that it may be possible without adding
APIs (I imagine you saw ECMerge, it synchronizes the view vertically:
wrapping causes strange things to happen because it acts on scrollbars) and
I wondered if I could detect this, but in fact the user may scroll during
wrapping, so I must find a way to synchronize my views even when a mix of
user and wrapping generated scrollbar changes happen.
Armel
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest