1. Text Edit wxEuphoria
Does anyone know how to make like a text editor in wxEuphoria, like have a
window where you can place text into it, something like the wxIDE editor
2. Re: Text Edit wxEuphoria
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com>
Dec 24, 2005
-
Last edited Dec 25, 2005
Andy wrote:
>
> Does anyone know how to make like a text editor in wxEuphoria, like have a
> window where you can place text into it, something like the wxIDE editor
You have a couple of options. You could simply use a wxTextCtrl, or you
could create a custom control, which is what I did for wxIDE. Actually,
I just converted the editor code from Judith's IDE (as it existed a couple
of years ago). Basically, it traps keystrokes, and prints stuff to the
screen. I have to manage the scrollbars and whatnot myself. You're free
to use the code from wxIDE if you like. You might look at the code for the
debugger for ooeu, as the display is just the same code reused. I didn't
need a lot of the code, since the debugger had much simpler requirements
than an actual editor.
You could probably even take something like Edita (license permitting) and
convert it to wxEuphoria. There would probably be some things that you'd
need that aren't wrapped, but it's usually not too difficult, and I'd be
happy to help and answer questions.
Matt Lewis