Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make editbox scrollbar disappear if not needed?
Message
De
16/04/2012 08:33:01
 
 
À
16/04/2012 08:22:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01541549
Message ID:
01541618
Vues:
36
Koen --

There are some good suggestions there to let me know how many lines there are
in an editbox, but that is not sufficient for my needs.

I have not seen anything yet where it is possible to tell how many lines a given text
string will use in an editbox because of the line-wrap complication.

For now, I am abandoning this and just leaving the scrollbar visible all the time. (sigh)


>James,
>
>take a look at the solution of Stuart : http://www.tek-tips.com/viewthread.cfm?qid=860687
>
>Regards,
>
>Koen
>++
>>Is it possible to have an editbox where the vertical scrollbar only appears if necessary?
>>
>>I believe I can compute how many lines will fit in an editbox, but know of no way in which I can
>>tell how many lines will be displayed because of the automatic line wrap.
>>
>>Two things I need to mention:
>>(1) This editbox is disabled, so I don't have to be concerned with what happens with user input.
>>(2) I can't use any other control instead, it must be an editbox.
>>
>>Thanks
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform