LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rich text Box - How to autoscroll?

Hi All,
 
I would like to autoscroll the rich text box content to see always the last entered text in the bottom line. 
 
Furthermore, what is the UpTo invoke node of rich text box ? It requires 3 parameters but I do not know the meaning of them.
 
Any ideas?
 
Reagrds
Tomi
0 Kudos
Message 1 of 10
(7,977 Views)
Hi Tomi,
Please find the attached vi. This resolves your problem.
 
Thanks
Sowjanya
0 Kudos
Message 2 of 10
(7,970 Views)
Hi,
 
Many thanks for your response. I forgot to mention that I use LV7.1. Could you save it to me in 7.1?
 
Regards
Tomi
0 Kudos
Message 3 of 10
(7,967 Views)
Hi
Here is the vi for 7.1 version
 
Sowjanya
 
 
0 Kudos
Message 4 of 10
(7,964 Views)
Hi Sowjanya,
 
 
Thanks again, but your example uses  LV text box. This does not solve my problem.
 
I use ActiveX  Rich TextBox due to the displayed text has many colors. Any further idee?
 
 
Regards
Tomi
0 Kudos
Message 5 of 10
(7,957 Views)
Pls Find attached file
0 Kudos
Message 6 of 10
(7,947 Views)
Hi,
 
This is similar what I am using now (except highlighting). See annex.
 
 I select the last character. It works but there is a really annoying side effect. The Rich text box flickers. This is what I want to avoid.  
 
I have googled and found solutions in VB and C. I cannot implemen them in LV due to the methods like AppendText() or ScrollToCaret() are missing from the invoke popup. Why?.
 
I tried to use the UpTo method but I do not know what for and how to use this....
 
For example on this site 
 
 
Any other idee?
 
Regards
Tamas
0 Kudos
Message 7 of 10
(7,936 Views)
This may not help you since you have 7.1, but the .NET RichTextBox has both AppendText() and ScrollToCaret(), on my system (8.2.1).

Matt
0 Kudos
Message 8 of 10
(7,920 Views)
Hi,
 
I checked with VB the Rich TextBox methods and propeties. They are identical what I see with theLV7.1. There is no AppendText() and ScrollToCaret(). 
 
 
I installed the Team Edition Visual Studio 2005 (including MS .NET framevork 2.0). I supposed that new version RichTextBox Control should appear in the LV object browser to insert into ActiveX container. But I see only the "old" Microsoft Rich textbox Control 6.0 (SP4).
 
Again what I would like to implement is the following for flickerfree smooth scrolling:
 
"....ok ive found what i was looking for. heres all i needed

        RichTextBox1.AppendText(newText)
        RichTextBox1.SelectionStart = Len(RichTextBox1.Text)
        RichTextBox1.ScrollToCaret()
        RichTextBox1.Select()

..."
 
Can be the problem that I use LV7.1? With another LV version may I can solve this issue?
 
Regards
Tomi
0 Kudos
Message 9 of 10
(7,898 Views)
You can't embed a .NET control into the ActiveX container in LabVIEW 7.1, which is what you're trying to do. You can only get the ActiveX version of the control, which is what you're seeing. To use a .NET control on a LabVIEW front panel you need LabVIEW 8.
0 Kudos
Message 10 of 10
(7,888 Views)