LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am facing problem regarding graphical user interface. I am using text box for editing files. I want to show the line numbers and graphical breakpoints along with text box. Can anybody help me in this? Thanks.

I am facing problem regarding graphical user interface. I am using text box for editing files. I want to show the line numbers and graphical breakpoints along with text box. Can anybody help me in this? Thanks.

0 Kudos
Message 1 of 4
(2,459 Views)

You can use the 'String Control' with '/' code display mode.

Also you can update the 'String Control' progamatically as you want (Line number display).

 

There are property nodes to get number of lines or number of char. in each line in the string control.

 

Regards,

Yogesh Redemptor

Regards,
Yogesh Redemptor
0 Kudos
Message 2 of 4
(2,456 Views)

Thanks for you reply.

But actually I don't want to show the \ (backslashes) to the user in my text box. 

 

Ok let me elaborate this problem little more. 

I want to show my text box as it is in normal editors e.g. In Matlab editor. There is a text box and on left side the gray bar shows the line numbers corresponding to the text. Further more i want that the user should be able to click on any line number to mark specific line as breakpoint (red circle or any graphical indication for mark). 

 

Regards,

Waqas Ahmad

0 Kudos
Message 3 of 4
(2,445 Views)

Hope you read the subject line of this response.

 

In terms of your question: you will have to write this yourself or find something like an ActiveX control or .NET control that does this. It doesn't sound like you have much experience with LabVIEW, so trying to code this up yourself is going to be a pretty tough undertaking. Thus, I'd suggest the external control route. Google for it.

 

What it is the purpose of editing these file in LabVIEW? I would think something like Notepad++ would be a better option.

0 Kudos
Message 4 of 4
(2,440 Views)