Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EditBox and ScrollBars
Message
From
15/12/2004 16:22:38
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00969445
Message ID:
00969588
Views:
10
Thanks Fred, but I will probably stick with the web browser control then. I don't want to have to step through every line in every memo field to determine the longest line before launching the control on the form. I have no idea how many records may be in the table in the longrun. With the web browser control I don't have to do that. Thanks for the information though!


>Trial and error was the only thing I found that was reliable. It was dependent on the font used in the content. It just needs to be somewhere out past what would be the widest line of your content.
>
>>That displays the horizontal scrollbar. How to know what width to set it to? Also, it still cuts off the information in the memo field...
>>
>>>>With multiline = .F. I only see the first line of the memo field's contents and even with ANY scrollbar setting (if multiline is .f.) I see NO scrollbars. If I set multiline to .T. and scrollbars to 1,2,or3 then I see the vertical scrollbars.
>>>>
>>>>What is even stranger. The controlsource is a memo field which may have a single line for its contents or the entire contents of a file stored there using filetostr. If I set the richtext control to enabled and locked still after running the form one time all of the records now have junk stored in them along with their values and all of the values were truncated to one line. Something like:
>>>>
>>>>{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
>>>>\viewkind4\uc1\pard\lang1033\f0\fs18 New connections will be remembered.
>>>>\par }
>>>>
>>>>Yet I thought setting the control to locked meant that the data was readonly.
>>>
>>>To get horizontal scrollbars in the RTF control, you have to set the right margin property (RightMargin), too.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform