gui-patch from scite 2.x not working

127 views
Skip to first unread message

Frank Wunderlich

unread,
Aug 3, 2012, 3:41:49 PM8/3/12
to scite-interest
Hi,
i've tried to port my Scite2.x-patch for the sidebar to scite 3.21 (see
attachment)

zip contains original-files and change files to easily make a diff, all
changes are marked with an comment including "sidebar"

sidebar and splitter are visible, also scintilla-control, but the
scintilla-control is empty (like file is not loaded, but tab-header
shows filename), am i'm missing anything?

regards Frank
gscite321_gui-patch.zip

Frank Wunderlich

unread,
Aug 5, 2012, 4:53:37 PM8/5/12
to scite-interest
Frank Wunderlich, 03.08.2012 21:41:
no idea?

Frank Wunderlich

unread,
Aug 19, 2012, 12:46:20 PM8/19/12
to scite-interest
Frank Wunderlich, 03.08.2012 21:41:
can anybody (neil, maybe steve) look at this simple patch (SciTEGTK.cxx
only is enough)?
i assume there is a problem with the bakground-drawing of scintilla, i
did not understand.

Frank

Neil Hodgson

unread,
Aug 19, 2012, 10:48:54 PM8/19/12
to scite-i...@googlegroups.com
Hi Frank,

> can anybody (neil, maybe steve) look at this simple patch (SciTEGTK.cxx only is enough)?
> i assume there is a problem with the bakground-drawing of scintilla, i did not understand.

I do not want to support this.

Neil

Frank Wunderlich

unread,
Aug 20, 2012, 4:43:28 AM8/20/12
to scite-i...@googlegroups.com
Neil Hodgson, 20.08.2012 04:48:
you have not to commit this,
i only want to know, why adding a simple control prevents scintilla from
working. same control-change works in Scite 2.x.
it seems that lua also cannot access to editor.

Frank

Frank Wunderlich

unread,
Aug 25, 2012, 11:03:22 AM8/25/12
to scite-i...@googlegroups.com
Frank Wunderlich, 20.08.2012 10:43:
can you please give me a hint? my patch seems to be ok and works well in
scite 2.x

regards Frank

Neil Hodgson

unread,
Aug 25, 2012, 6:39:17 PM8/25/12
to scite-i...@googlegroups.com
Frank Wunderlich:

> can you please give me a hint? my patch seems to be ok and works well in scite 2.x

This looks like it would sink too much time so I don't want to work on it.

Neil

Frank Wunderlich

unread,
Aug 25, 2012, 9:48:01 PM8/25/12
to scite-i...@googlegroups.com
Neil Hodgson, 26.08.2012 00:39:
i simply add a paned-control to boxMain with 2 vbox-widgets and then
adding to the left one your 2 controls (wtabbar and wcontent) you put
directly to boxMain...not that complicated and as i say its working on
scite 2.x

have you changed anything in 3.x, that can be disturbed by this 2
additional controls (hpaned,vbox) between boxMain and wContent/wTabbar?

do you iterate through the controls so your code get my hpaned instead
of wcontent?

Regards Frank

Neil Hodgson

unread,
Aug 26, 2012, 8:28:45 PM8/26/12
to scite-i...@googlegroups.com
Frank Wunderlich:

> have you changed anything in 3.x, that can be disturbed by this 2 additional controls (hpaned,vbox) between boxMain and wContent/wTabbar?

I thought my previous two answers were quite direct: I do not want to be involved in this issue. Please direct your questions to others.

Neil

Frank Wunderlich

unread,
Sep 1, 2012, 8:20:46 AM9/1/12
to scite-i...@googlegroups.com
OK,
the problem was a call in a lua-script to editor:GetLexerLanguage(),
which seems to be implemented in my current scite-binary, but not in
current release 3.2.x. This call is in OnUpdate and has blocked UI

i removed that temporarily from the scripts and the UI looks as i wanted ;)

can i send SCI_GETLEXERLANGUAGE from lua directly to editor or have i
implement this directly in scite-code?

regards Frank

Neil Hodgson

unread,
Sep 3, 2012, 10:00:19 AM9/3/12
to scite-i...@googlegroups.com
Frank Wunderlich:

the problem was a call in a lua-script to editor:GetLexerLanguage(), which seems to be implemented in my current scite-binary, but not in current release 3.2.x.

   The API changed in 3.2.1: http://www.scintilla.org/PaneAPI.html

   Neil

Frank Wunderlich

unread,
Sep 3, 2012, 1:09:23 PM9/3/12
to scite-i...@googlegroups.com
Neil Hodgson, 03.09.2012 16:00:
thank you for the tip...thats the reason, i got problems with the versions i've tested with my patch (only 3.2.1 and 3.2.2)

as i understand i have to use editor.LexerLanguage as getter, right? in the documentation ist only described as setter.

currently i use props['Language'] ;)

Frank

Philippe Lhoste

unread,
Sep 5, 2012, 7:19:24 AM9/5/12
to scite-i...@googlegroups.com
On 03/09/2012 19:09, Frank Wunderlich wrote:
> as i understand i have to use editor.LexerLanguage
> <http://www.scintilla.org/ScintillaDoc.html#SCI_SETLEXERLANGUAGE>as getter, right? in the
> documentation ist only described as setter.
>
> currently i use props['Language'] ;)

IIRC, Neil recently added the getter version, which is visible (at the time I write
this...) at the page you link to.
SCI_GETLEXERLANGUAGE(<unused>, char *name)

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --



Frank Wunderlich

unread,
Sep 5, 2012, 1:40:56 PM9/5/12
to scite-i...@googlegroups.com
How to use this message with lua?
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



Philippe Lhoste <Phi...@GMX.net> schrieb:
-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-i...@googlegroups.com.
To unsubscribe from this group, send email to scite-interes...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.

Philippe Lhoste

unread,
Sep 6, 2012, 5:35:06 AM9/6/12
to scite-i...@googlegroups.com
On 05/09/2012 19:40, Frank Wunderlich wrote:
> How to use this message with lua?

print(editor.LexerLanguage)

(show the lexer name, null if no lexer is set)
Reply all
Reply to author
Forward
0 new messages