[wxruby-users] New problem: Newlines.
Tim Mcd
lists at ruby-forum.com
Thu Jan 8 14:47:25 EST 2009
I have this:
test2 = TextCtrl.new(frame, 10, "Output here!", Point.new(0, 501),
Size.new(500, 25), TE_PROCESS_ENTER)
display.write_text " \n You entered: #{str}"
But the '\n' isn't... calculated? Inserted? It reads that there is
SOMETHING there, because the \n doesn't show up in the text, but I can
comment it out (\\n) and the \n will then show. It looked like to me
that the API documentation says that newline characters are the only
control characters allowed in write_text, and that they work. (Oh, and
display is a variable for test2, in a different method)
--
Posted via http://www.ruby-forum.com/.
More information about the wxruby-users
mailing list