Z
Zytan
I need a log file, and RTF is good since color formatting can help
find the interesting parts. I want something that I can code quick.
Would the easiest way be to write to a hidden RichTextBox, grab the
RTF code from it, and write it to a file on shut down? Likely, I'll
have an option to view the loggin onscreen at the same time, so I may
or may not have a RichTextBox already showing the contents on the
screen. Perhaps I could just make it the same one, but then the log
class needs to be aware of the GUI. I'd rather have it just create
its own RichTextBox internally, *if* that is the best way.
Or, I could just code my own (very simple one) like this, which allows
only basic formatting, which is all I need:
http://www.gamedev.net/reference/programming/features/rtflog/
Any thoughts?
Zytan
find the interesting parts. I want something that I can code quick.
Would the easiest way be to write to a hidden RichTextBox, grab the
RTF code from it, and write it to a file on shut down? Likely, I'll
have an option to view the loggin onscreen at the same time, so I may
or may not have a RichTextBox already showing the contents on the
screen. Perhaps I could just make it the same one, but then the log
class needs to be aware of the GUI. I'd rather have it just create
its own RichTextBox internally, *if* that is the best way.
Or, I could just code my own (very simple one) like this, which allows
only basic formatting, which is all I need:
http://www.gamedev.net/reference/programming/features/rtflog/
Any thoughts?
Zytan