Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need text box with multi-line support
Message
From
16/07/2001 15:11:32
 
 
To
16/07/2001 14:46:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00531053
Message ID:
00531168
Views:
12
Craig,
There must be something wrong. On my Dell 667MHz a 4MB RTF file is loaded in about 4 seconds. Sorry but I have no other ideas what you could change.

>My file is 2 Meg. However, I can never be sure how big the file will be.
>
>
>>Craig,
>>I guess it's a matter of size. I did some testing and a fairly simple 28 page word doc converted to RTF is loaded instantaneously. However, a very large and complex document (20MB) took forever to load. I noticed that assigning the text to .textRtf as opposed to .text performed slightly better.
>>How big is your text file?
>>
>>>I'm experimenting with the RTF control and have come up with one problem. When I load the text file either through the LoadFile() method of the control or if I just set the RTF.Text = FILETOSTR("MyFile.TXT"), the file load immediately. However, it takes over 30 seconds before control is returned to VFP. Any ideas what is causing this?
>>>
>>>
>>>>I've had a similar requirement some time ago. I've used the RTF control and set the RightMargin property to some really high value. Wrapping still occurs, but it was sufficient for my needs. I just did some testing. With RtfControl.RightMargin=800000 I was able to enter 4600 characters without wrapping.
>>>>
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform