unable to use 'origin' code lines for text window/textedit c