From 30120988430ad43c9686d19c10c41b879128c6ba Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 5 Jul 2019 11:35:32 +1000 Subject: Bug [#2118]. Add TabMinimumWidth property to API so applications can display overviews or minimaps with reasonable layout. --- doc/ScintillaDoc.html | 14 +++++++++++++- doc/ScintillaHistory.html | 5 +++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index b96f6eea2..c99e5509c 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3912,8 +3912,11 @@ struct Sci_TextToFind { inserting a tab at the current character position and backspace unindents the line rather than deleting a character. Scintilla can also display indentation guides (vertical lines) to help you to generate code.

- SCI_SETTABWIDTH(int tabWidth)
+ + SCI_SETTABWIDTH(int tabWidth)
SCI_GETTABWIDTH → int
+ SCI_SETTABMINIMUMWIDTH(int pixels)
+ SCI_GETTABMINIMUMWIDTH → int
SCI_CLEARTABSTOPS(line line)
SCI_ADDTABSTOP(line line, int x)
SCI_GETNEXTTABSTOP(line line, int x) → int
@@ -3936,6 +3939,15 @@ struct Sci_TextToFind { SCI_GETHIGHLIGHTGUIDE → position
+

SCI_SETTABMINIMUMWIDTH(int pixels)
+ SCI_GETTABMINIMUMWIDTH → int
+ SCI_SETTABMINIMUMWIDTH sets the minimum size of a tab in pixels to ensure that the tab + can be seen. The default value is 2. This is particularly useful with proportional fonts with fractional widths where + the character before the tab may end a fraction of a pixel before a tab stop, causing the tab to only be a fraction of + a pixel wide without this setting. + Where displaying a miniaturized version of the document, setting this to 0 may make the miniaturized + version lay out more like the normal size version.

+

SCI_SETTABWIDTH(int tabWidth)
SCI_GETTABWIDTH → int
SCI_SETTABWIDTH sets the size of a tab as a multiple of the size of a space diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 30bb32a5c..ca8665b7c 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -565,6 +565,11 @@ Released 5 July 2019.

  • + Add SCI_SETTABMINIMUMWIDTH to set the minimum width of tabs. + This allows minimaps or overviews to be layed out to match the full size editing view. + Bug #2118. +
  • +
  • SciTE enables use of SCI_ commands in user.context.menu.
  • -- cgit v1.2.3