SCI_SETHSCROLLBAR(0). Use SCI_SETHSCROLLBAR(1)
to enable it again.
SCI_GETHSCROLLBAR returns the current state. The
default state is to display it
when needed.> In Komodo 6 and Scite 2.02 (which scintilla Komodo 6 uses),
> the horizontal scrollbar is always present, even for an empty
> document.
> ...
> If visible is 1, the scrollbar is always displayed. If it's 0, it's never
> displayed. Is this a bug, or is there something else I need to do?
Its going to depend on the scroll width so investigate
SCI_SETSCROLLWIDTH and SCI_SETSCROLLWIDTHTRACKING.
http://www.scintilla.org/ScintillaDoc.html#SCI_SETSCROLLWIDTH
Neil
> ... using a fixed-width font, if I set scrollWidth to 600, and
> scrollWidthTracking to true, the horiz scroll bar appears when
> I type a long line. But when I delete text so the line fits within
> the view (and xoffset is 0), the horizontal scroll bar is still
> there. The interactive shell shows me that scrollWidth has
> increased from 600 to 845, which would explain why the scroll
> bar is there.
This is the intended behaviour. As the documentation says: "This
mode never adjusts the scroll width to be narrower." This is due to
the performance cost of dynamically determining the current widest
line.
> Does our client code have to do more work to implement this correctly?
Yes.
Neil
Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla...@googlegroups.com.
To unsubscribe from this group, send email to scintilla-inter...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.