diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-04 09:24:39 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-04 09:24:39 +1000 |
commit | 016e0f6420023c8f9e8e1b84b987b9c90ba19bde (patch) | |
tree | eb5b2ad5418ba889a92e215e7b1fa6006224cfb0 | |
parent | f642f3da2bb8676fd67a35319e58fdd69a8ca3d8 (diff) | |
download | scintilla-mirror-016e0f6420023c8f9e8e1b84b987b9c90ba19bde.tar.gz |
Backport: Add -large command line option for testing large document option.
Backport of changeset 6791:1bb0b468a5a8.
-rw-r--r-- | test/XiteWin.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/XiteWin.py b/test/XiteWin.py index 5953fd502..77bb313d7 100644 --- a/test/XiteWin.py +++ b/test/XiteWin.py @@ -150,6 +150,8 @@ class XiteWin(): self.appName = "xite" + self.large = "-large" in sys.argv + self.cmds = {} self.windowName = "XiteWindow" self.wfunc = WFUNC(self.WndProc) @@ -158,7 +160,7 @@ class XiteWin(): WS_VISIBLE | WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN, \ 0, 0, 500, 700, 0, 0, hinst, 0) - args = sys.argv[1:] + args = [a for a in sys.argv[1:] if not a.startswith("-")] self.SetMenus() if args: self.GrabFile(args[0]) @@ -198,6 +200,9 @@ class XiteWin(): sciptr = c_char_p(user32.SendMessageW(self.sciHwnd, int(self.face.features["GetDirectPointer"]["Value"], 0), 0,0)) self.ed = ScintillaCallable.ScintillaCallable(self.face, scifn, sciptr) + if self.large: + doc = self.ed.CreateDocument(10, 0x100) + self.ed.SetDocPointer(0, doc) self.FocusOnEditor() |