Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit Boxes
Message
From
14/02/2023 08:47:41
 
 
To
14/02/2023 06:15:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01686192
Message ID:
01686200
Views:
46
>>In working with listboxes one can get to the bottom by setting the ListIndex to the ListCount.
>>Is there anything akin to that in working with editboxes?
>>
>>For example...In the case of an editbox that has more text lines in it than the size of the box itself...
>>
>>When adding an entry to such an editbox, I want the display of the editbox to show the entry of added items at the bottom of the editbox. Currently it is hidden and I have to scroll down to actually see the bottom of the data.
>>
>
>Assuming This is the editbox itself:
>
>
>This.SelStart = This.SelLength + 1
>
>
>Tamar
>-------------------------------------
>What I'm trying to accomplish is this...
>Let's say, for example that an edit box only is able to display 3 lines of text (line1, line2 and line3). If I was to add a 4th line then I would like the edit box to show lines 2, 3 and 4 (with line 1 having scrolled up by itself).

Did you try what I suggested? If you actually want a new line, you might need to add CHR(10) + CHR(13) at the end of the Value (if it doesn't already have that).

Tamar
------------
Yes, Tamar. I did try your suggestion...also added the carriage return too.
It just doesn't seem to do the trick. After I add a new line, the editbox does not scroll to the bottom so that it shows the last lines of the editbox. I'm likely doing something incorrectly.
Thanks very much for your help. I guess I'll just try to find some way around the issue.
Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform