Displaying text in a multiline text box 
Author Message
 Displaying text in a multiline text box

Howdy gurus, here is something that is perplexing me at the moment.

I have an application, which updates a multiline textbox.   I require
that when the amount of data becomes too big to fit in the text box, that
it displays the last four lines of the text.  Currently each time it updates
it displays the first four lines of the text string.

Is there an "easy" way of displaying the last four lines, or should I
perhaps code something specific. (Which is not a favoured option.)

Cheers in advance,

Vaughnn

<<<<<  Vaughnn Brooks  >>>>>                  Post: Coles Supermarkets
                                                    PO Box 480

                                                    Australia.

                                             Phone: +61 3 9829 5813
                                               FAX: +61 3 9829 6886

--
<<<<<  Vaughnn Brooks  >>>>>                  Post: Coles Supermarkets
                                                    PO Box 480

                                                    Australia.



Sat, 08 Jan 2000 03:00:00 GMT  
 Displaying text in a multiline text box

Howdy gurus, here is something that is perplexing me at the moment.

I have an application, which updates a multiline textbox.   I require
that when the amount of data becomes too big to fit in the text box, that
it displays the last four lines of the text.  Currently each time it updates
it displays the first four lines of the text string.

Is there an "easy" way of displaying the last four lines, or should I
perhaps code something specific. (Which is not a favoured option.)

Cheers in advance,

Vaughnn

<<<<<  Vaughnn Brooks  >>>>>                  Post: Coles Supermarkets
                                                                                                                                         PO Box 480

                                                                                                                                    Australia.
--
<<<<<  Vaughnn Brooks  >>>>>                  Post: Coles Supermarkets
                                                    PO Box 480

                                                    Australia.



Sat, 08 Jan 2000 03:00:00 GMT  
 Displaying text in a multiline text box

Quote:

> Is there an "easy" way of displaying the last four lines, or should I
> perhaps code something specific. (Which is not a favoured option.)

MyTextBox.SelStart = Len(MyTextBox.Text)

N Varacalli
--
The views expressed herein do not represent the views of my employer.

The Address in the header is mangled, delete appropriately.

To reach me via e-mail, try
NICHOLAS_VARACALLI at non-hp-Canada-om1.hp.com



Sat, 08 Jan 2000 03:00:00 GMT  
 Displaying text in a multiline text box

Quote:

>I have an application, which updates a multiline textbox.   I require
>that when the amount of data becomes too big to fit in the text box, that
>it displays the last four lines of the text.  Currently each time it updates
>it displays the first four lines of the text string.

>Is there an "easy" way of displaying the last four lines, or should I
>perhaps code something specific. (Which is not a favoured option.)

>Cheers in advance,

>Vaughnn

I suspect you are updating your textbox like this...
Text1.text = Text1.text & NewText$

Try using SelStart and SelText to update it and you'll get the results you're
looking for. Plus you won't get any blinking effect. Like this...
Text1.SelStart = Len(Text1)
Text1.SelText = NewText$



Sat, 08 Jan 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Adding text to a multiline text box

2. Assigning Multi line text to a multiline text box

3. How to print MultiLine Text from Text box

4. Text Box Entry To Text Box Display?

5. reading a text file to display in text box

6. Rich Text box displaying last inserted text?

7. grabbing text and displaying it in a text box

8. Text Box Text Displays Question

9. Display Text from variable in text box

10. Displaying formatted text in a text box or grid

11. Text box text on new page text box

12. I need to display the text of an html file in a text box

 

 
Powered by phpBB® Forum Software