09-16-2005 11:28 AM
09-19-2005 03:10 PM
Hello Bob,
Unfortunately, that seems to be the only way to insert items into a Listbox. I tried looking in the Programmers Toolbox library and it has functions that allow you to insert multiple items into the list. However, there is no way to convert a List to a Listbox.
If you can tell me more about your application, I can help you figure out a way to make it more efficient. Maybe we can use some other type of UI to accomplish the same task faster.
Regards,
Jack J.
Applications Engineer
National Instruments
09-19-2005 04:43 PM
Hi Jack,
As I mentioned, the application will be used to view test setup files formatted as ASCII text. At 100K+ lines, they are too large to load into Excel. Some users view them using Notepad or Word, but these do not provide line numbers which are helpful to use as internal references.
Since the files are ASCII, I usually view them using the editor in CVI. It provides line numbers, an easy to use "find" feature, along with the ability to add toggle tags for rapidly moving to selected areas of interest. Unfortunately, not everyone in my group has CVI. Also, there are some other custom features that would be handy to have such as:
Features 1 - 3 can be readily accomplished using a text box, but I'm not sure how to implement the bookmark feature with this control. It would be great to have a user click on a line of text and be able to provide some visual feedback in the textbox that this line has been bookmarked. Is there a way to change the color or format of a single line of text in a text box?. Perhaps this is a feature in 7.X.
Thanks in advance for any suggestions that you can provide.
Bob
09-20-2005 03:56 PM
Hi Bob,
Wow! That would be a pretty cool application. A document browser written in CVI. It is no simple task but I would definitely love to see this done in CVI.
However, I think you can save a lot of time by using a free software that does the same things you are looking for. Here is a link to it:
http://www.download.com/3001-2352_4-10433516.html?idl=n
It is called Notepad++. It seems to do everything you want.
Hope this helps,
Regards,
Jack J.
Applications Engineer
National Instruments
09-21-2005 04:06 PM
09-21-2005 04:27 PM
Mert and Jack,
Thanks for your help. I'll give this a try.
Bob
09-21-2005 07:11 PM