LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wrap Line Text Indicator

Hi,

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

educhene@laposte.net
0 Kudos
Message 1 of 15
(4,117 Views)
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.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 15
(4,098 Views)
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

educhene@laposte.net
0 Kudos
Message 3 of 15
(4,085 Views)
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.

___________________
Try to take over the world!
0 Kudos
Message 4 of 15
(4,079 Views)
If it is the latest solution, I will do that.

Thanks.
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 5 of 15
(4,078 Views)
Hello,

You will find an example which select the text that you want to display in your indicator.

Hope this help.
Isabelle
Ingénieur d'applications
National Instruments France
0 Kudos
Message 6 of 15
(4,073 Views)
Arrghhhh !!

I have LabView 7.0 : I can't open your vi.
Could you repost it in 7.0 version compatibility ?
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 7 of 15
(4,070 Views)
Here it is :
Isabelle
Ingénieur d'applications
National Instruments France
0 Kudos
Message 8 of 15
(4,066 Views)
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

educhene@laposte.net
0 Kudos
Message 9 of 15
(4,055 Views)
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.

___________________
Try to take over the world!
0 Kudos
Message 10 of 15
(4,049 Views)