Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Edit Boxes
Message
De
14/02/2023 13:45:01
 
 
À
14/02/2023 08:47:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01686192
Message ID:
01686204
Vues:
56
>>>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.

I apologize. What I typed was not what I meant. Glad that Borislav was able to give you the right answer.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform