View with color txt added automatically by one thread,No flash and auto scrolling
-
I need to create one edit view which could be able to add different color txt automatially(actually by another thread). act like a monitor to monitor the message from serialport or tcp; The message displayed shall be able have different color to make it has different meanings;(if different font is support is better) Also when user scrolls up, it could stay at that scroll position, it did not scroll down automatically when new message arrived. User could select and copy the txt; When user scroll down to the last line, it could scroll down automatically to the last line when background message is arrived; when scrolling, it did not flash(twinkle); I have tried EditView & Richedit, all failed, the new txt added is by ReplaceSel, which will make the content auto scroll down to the last line, and user could not do Selection and copy when new txt added; I have found the Visual Studio Trace window, it could add message automatially and user could easily select txt even when new txt added. I am not sure how to realize it, this thing has bothered me a lot time, please someone could help me about this. Very appricate of your help;
-
I need to create one edit view which could be able to add different color txt automatially(actually by another thread). act like a monitor to monitor the message from serialport or tcp; The message displayed shall be able have different color to make it has different meanings;(if different font is support is better) Also when user scrolls up, it could stay at that scroll position, it did not scroll down automatically when new message arrived. User could select and copy the txt; When user scroll down to the last line, it could scroll down automatically to the last line when background message is arrived; when scrolling, it did not flash(twinkle); I have tried EditView & Richedit, all failed, the new txt added is by ReplaceSel, which will make the content auto scroll down to the last line, and user could not do Selection and copy when new txt added; I have found the Visual Studio Trace window, it could add message automatially and user could easily select txt even when new txt added. I am not sure how to realize it, this thing has bothered me a lot time, please someone could help me about this. Very appricate of your help;
-
I need to create one edit view which could be able to add different color txt automatially(actually by another thread). act like a monitor to monitor the message from serialport or tcp; The message displayed shall be able have different color to make it has different meanings;(if different font is support is better) Also when user scrolls up, it could stay at that scroll position, it did not scroll down automatically when new message arrived. User could select and copy the txt; When user scroll down to the last line, it could scroll down automatically to the last line when background message is arrived; when scrolling, it did not flash(twinkle); I have tried EditView & Richedit, all failed, the new txt added is by ReplaceSel, which will make the content auto scroll down to the last line, and user could not do Selection and copy when new txt added; I have found the Visual Studio Trace window, it could add message automatially and user could easily select txt even when new txt added. I am not sure how to realize it, this thing has bothered me a lot time, please someone could help me about this. Very appricate of your help;
Do the obvious thing start by looking at something like NotePad++ which the source code is open. http://notepad-plus-plus.org/[^]
In vino veritas