I'm using a classical text indicator to display a log file. The problem is that lines in this file are long and my text indicator small : vertical scroll bar is active (ok), but I would want to have the horizontal scroll bar too : I don't want to display one line in the file into several in the text indicator.
How could I do that ???
Eddy DUCHENE 12 F Chemin de Boutary 69300 CALUIRE ET CUIRE
I don't think a horizontal scroll bar is available for a string indicator. If you double click inside the text box, you can use the keyboard arrows to move to the left or right, similar to a scrollbar. I usually just make the box long enough to hold the longest text string that I would ever use.
I don't control the length of the text logged, and I will not (no restriction for the length). And it's impossible to increase the size of the indicator, because there are no enough room.
Any ideas ??
Eddy DUCHENE 12 F Chemin de Boutary 69300 CALUIRE ET CUIRE
You could try using an ActiveX text control. I'm sure Microsoft have one as standard and it will probably have scrollbars. Drop an ActiveX container on the front panel, right-click it and select Insert AcitveX object. Search the list for a proper control (probably around the m's, if it's MS) and you can control it using property nodes and invoke nodes.
This is not what I want : my lines can have more than 256 characters. I don't want to see the full line in the indicator (repesented by 15 or more lines). Exemple : I have 10 lines to display in my indicator : those lines contains more than 256 characters. I want to display ten lines in my indicator and a horizontal scroll bar to move to the right of the text to see the next caharcters of lines.
Eddy DUCHENE 12 F Chemin de Boutary 69300 CALUIRE ET CUIRE
The main problem is that the LV text control can't not word-wrap. There is no getting around this. As long as the word wrapping is done automatically, there is no point in having a scrollbar. You probably can write code to analyze the string and display only the relevant parts, but I don't think it's worth the trouble. You can make a product suggestion to NI to have the ability to turn off word wrapping in future versions of LabVIEW.