Sorry about the meaningless subject, didn't know what to call it...
What I want is an interface simillar to a console app, where you type your thing and press enter, the command is evaluated, something is printed
back and you get another prompt. More like the python shell, where you can scroll upwards and copy all thats happend.
"the command is evaluated, something is printed back" - that part is all made, with python's print/input and friends. Now I'm making it windowy
I assume that I would use wxTextCtrl, here are my problems:
- How do I achieve that 'console' interface, where everything that's 'up' (and the prompt for that matter) is read-only?
- How do I make any text that is typed a different color? the wxTreeCtrl::SetStyle function takes a range to which it will apply the new style.
- Is it possible make a wxTextCtrl without a border?
Or, is there a better control to do this with?
Look at pycrust and psi. They use wxSTC.
HTH
Niki Spahiev