[erlang-questions] wxStyledTextCtrl and numbered lines, custom margin

Dan Gudmundsson dangud@REDACTED
Thu Mar 21 08:13:26 CET 2013


wxStyledTextCtrl::MarginSetText is not available in wx-2.8.* it is
only available
in wx-2.9 so it's not something I would like to take in yet.
The code generator is still based on 2.8 since that is what is
available in most linux
distributions.

/Dan

On Thu, Mar 21, 2013 at 1:57 AM, Hosszú Gábor <gabre@REDACTED> wrote:
> Hello,
>
> I have been writing a GUI application using wxErlang and I would like to do
> the following:
> I have a wxStyledTextCtrl and I want the lines to be numbered, but not from
> 1, but from N (which usually not equals 1). I tried the trivial solution,
> adding some empty lines with "\n" and hiding those lines, but according to
> my experiences and wxStyledTextCtrl/Scintilla docs hiding the first line is
> impossible.
> On wx forums some programmers suggested me the following function:
> http://docs.wxwidgets.org/trunk/classwx_styled_text_ctrl.html#ad66c7d820d12a5cc6f82aa72935fbbea
> (marginsettext)
> but this function is not implemented in wxErlang. What should I do now?
> Should I write some C++ code or...? I dont really know the inner structure
> of the wxErlang modules, I am just a user of them.
>
> Thank you in advance,
> Gabor Hosszu
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list