mikledet
December 8th, 1999, 02:53 AM
Hi,
Here is the thing - i am using a list box to let the user select an item from it - to add to an rtf textbox.
The broblem is - since the user can insert the item from the list any where in the rtf text box, i am using the next aprouch:
firsrthalftext & list1.text & secondhalftext
if i use this concating of strings on the text property of the rtf - all works fine - but - (there is always a but)
some of the text in the rtf is colored - and when usinf this method of concating strings - the color of the text become all black after the first concat.
So, i tried to use the textRTF property - and here starts truble.
The first and second halfs of the rtftextbox will come out just fine - with the colored text intact.
However - the text from the list box - will not apear.
If i do that, and try to insert the item from the list at the beggining of the text - the item will be inserted - but inlarged with the addition "1".
I tried to use another rtftextbox to recive the item from the list as text - and move it from rtf textbox to rtftrctbox with textRTF - but then the item will allways apear at the beggininig of the text no matter in what order i concat the strings.
???
Any pointers will be welcome.
Dani
Here is the thing - i am using a list box to let the user select an item from it - to add to an rtf textbox.
The broblem is - since the user can insert the item from the list any where in the rtf text box, i am using the next aprouch:
firsrthalftext & list1.text & secondhalftext
if i use this concating of strings on the text property of the rtf - all works fine - but - (there is always a but)
some of the text in the rtf is colored - and when usinf this method of concating strings - the color of the text become all black after the first concat.
So, i tried to use the textRTF property - and here starts truble.
The first and second halfs of the rtftextbox will come out just fine - with the colored text intact.
However - the text from the list box - will not apear.
If i do that, and try to insert the item from the list at the beggining of the text - the item will be inserted - but inlarged with the addition "1".
I tried to use another rtftextbox to recive the item from the list as text - and move it from rtf textbox to rtftrctbox with textRTF - but then the item will allways apear at the beggininig of the text no matter in what order i concat the strings.
???
Any pointers will be welcome.
Dani