Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit Box Refresh
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00041162
Message ID:
00041182
Views:
60
>>>>>I have a simple Editbox that contains memo data. For example purposes, let's say the EditBox shows five lines at a time and has a vertical scroll bar. If I enter 10 lines of data in one record, leave the cursor at the end of line 10, then go to the next record (via a push button) and the next record has only 1 line of data, the EditBox doesn't show that 1 line of text unless I click on the DISABLED scroll bar's up arrow! Is this a bug? Anyone have a workaround? I want the beginning of the memo field to show every time I go to a new record.
>>>>
>>>>Try refreshing the editbox by calling EditBox.Refresh()
>>>>
>>>>Kamal
>>>
>>>I tried that already... it didn't work. Thanks anyways.
>>
>>Looks like a bug. I was finally able to generate it but it appeared if I had lots of blank lines in memo. I have the solution but I sincerly hope that there is something better than this...
>>
>>loObject = thisform.edtMyEditBox
>>KEYBOARD'{HOME}'
>>loObject.SetFocus()
>>
>>Kamal
>
>Where did you put those three lines of code?

Immediately on a record change i.e. Next, Previous etc.

Good Luck. This will work but look for something better if you find any.
Kamal
Previous
Reply
Map
View

Click here to load this message in the networking platform