Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Is there any sample code for figuring out how many lines the current value of an EditBox is taking up, taking into account font and wrapping issues?
>
>I want to auto-size my editbox to as small a size as can hold the arbitrary text passed in (or optionally, is there some way to get TextBoxes to display multi-line text?).
>
>Thanks as always,
>
>-- jas
You can parse the value:
lines = occurs(chr(13),edit.value)
Then set your height by calling wfont(2) which returns the size.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement