Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing all four lines of an edit box on a grid
Message
De
25/01/2008 10:34:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01285444
Message ID:
01285527
Vues:
20
>Hi
>
>I've got a grid of edit boxes, with four lines of text in each cell.
>
>The four lines of each edit box show fine, when the cell has focus.
>
>But for some of the cells of the grid that don't have focus only display the last 3 lines (and a blank line).

You may actually have more than four lines - the fifth line being empty. You can do some checking in editbox's .lostfocus(), or just rework the contents. Use alines() to break the contents into lines, then recompose it from the first four non-empty lines and just ignore the rest. And set the .selstart=0 just in case.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform