Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Following some adivce from Pete O'Hanlon I have started to use a listBox for reading the data from a Serial Port, I have set a list Box and a Richtext box for comprison I have noticed the Rich text box will display the entireity, wrapping the text, the list box does not auto wrap with the multiline set to true like the RTB does. As I am looking to interface to legacy device (used by Fred Flintstone probably) which I dont have access to at the moment they might just spew torrents of data which would fill up the box. I know the list box gets all the data it is just displaying it if it goes off the screen. I cant find an example that has large ammounts of text just very short words "one", "two" not like the below:
Write_Board("hello world! this is a really long message to see which updates faster the listbox or the rich text box lets start going through the opl for the actual commands");

Or should I stick to the old RTB which I know and love?


Glenn
Posted
Comments
Sergey Alexandrovich Kryukov 3-Dec-12 13:05pm    
I would suggest you make a custom control for such purposes, maybe not even based on ListBox. It could be a pretty big work with some research on what you can use for implementation.
By the way, you always need to tag your UI library. The name "ListBox" -- what's the full type name?
--SA
glennPattonWork3 4-Dec-12 3:35am    
I was thinking the same, just trying to make sure I hadn't over looked the listBoxes version of Multiline.
Sergey Alexandrovich Kryukov 4-Dec-12 11:14am    
Well, yes, this would be the first thing to check...
--SA
glennPattonWork3 4-Dec-12 11:23am    
However I can't find one!! (Doh!)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900