diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-23 00:24:18 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-23 00:24:18 +0200 |
commit | a1a7d3d737f8f464ca3403dad6a0755a2d85abaa (patch) | |
tree | b1d89fff1cd22fb48021f995e30bec81f48d6b6b /src/interface.cpp | |
parent | 1707b10c7881ab275a60b5583ddb42b681d809fb (diff) | |
download | sciteco-a1a7d3d737f8f464ca3403dad6a0755a2d85abaa.tar.gz |
never show the horizontal scrollbar by default
* the GTK UI shows the horizontal scrollbar by default,
while Scinterm doesn't.
Since showing them with Scintilla's default settings is
ugly but setting them up properly is costly and should
be decided by the user.
Diffstat (limited to 'src/interface.cpp')
-rw-r--r-- | src/interface.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index 0fd7af2..17ec0a2 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -63,6 +63,13 @@ View<ViewImpl>::setup(void) ssm(SCI_SETFOCUS, TRUE); + /* + * Some Scintilla implementations show the horizontal + * scroll bar by default. + * Ensure it is never displayed by default. + */ + ssm(SCI_SETHSCROLLBAR, FALSE); + ssm(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK); ssm(SCI_SETCARETFORE, 0xFFFFFF); |