Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remembering memo field position
Message
From
20/12/2000 22:27:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00455718
Message ID:
00455742
Views:
26
>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?

Not really, but you can store the position in lostfocus and restore it in gotfocus - so, at least, if they revisit the box (I assume you mean editbox) you can at least get them where they were. Another way would be to specifically issue the good old Modify Memo ... Range, but I'd wonder how you'd get the selectedposition (I've forgotten the names of properties to check - they do have something with 'select' in their names).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform