Super simple demonstration of a text buffer (text box) in openFrameworks
C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
testApp.cpp
testApp.h
textInput.cpp
textInput.h

README

Very simple text input.
http://github.com/elliotwoods/Simple-text-buffer-for-openFrameworks

Supports:
* Range of standard ascii input keys
* left,right to move cursor
* delete,backspace

Does not support:
* mouse select
* shift select
* clipboard
* up,down key navigation

Generally for simple tasks like when you want to save something with a filename (suggest changing the behavious of OF_KEY_RETURN to save)

There are 2 branches on the github:
* very simple - not object oriented. Chop and change as you like
https://github.com/elliotwoods/Simple-text-buffer-for-openFrameworks/tree/VerySimple
* ofx style - in a seperate class, but still suggest you chop and change as you like.
https://github.com/elliotwoods/Simple-text-buffer-for-openFrameworks


Since i presume most people will be changing the code to their own needs, i'm not suggesting that this is a real ofx extension, but instead some code that you can start with and hack with.