Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remembering memo field position
Message
From
21/12/2000 16:18:55
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00455718
Message ID:
00456080
Views:
29
>>>>Hi,
>>>>
>>>>On one form, I'm displaying a text box which is bound to a memo field. There's more text than will display in one screen so the user has to scroll down. If they scroll down, say to the middle or bottom of the text, and then click on a field somewhere else on the form, the text box reverts to the top of the memo field.
>>>>
>>>>I think that this is because the cursor in the text field is at the top. If you scroll down by moving the cursor downward with the down arrow button, then click on another field, the text box does not change.
>>>>
>>>>Is there a way to lock the text box position regardless of where the cursor is?
>>>>
>>>>TIA
>>>
>>>Larry, have you tried setting the SelStart property and then setting the SelLength to 0?
>>
>>That would work, because that would effectively move the cursor (ok, the "insertion point")... but how do I know what value to set SelStart to?
>>
>>TIA
>
>Now THAT is the $1,000,000 question! That gets to be a little tricky due to text wrapping, proportional fonts, etc. It would have been really helpful if some other property was updated to the position of the first character displayed within the string, but I don't know of any such beast.

Me either... ya think it's too late to get this on the VFP7 wish list? :)

Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform