Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing all four lines of an edit box on a grid
Message
From
25/01/2008 10:34:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01285444
Message ID:
01285527
Views:
19
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform