Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to display text without word wrap?
Message
De
28/10/1998 15:06:39
 
 
À
28/10/1998 15:00:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00151158
Message ID:
00151874
Vues:
22
>>>I want to display text-only report in form, without word wrap
>>>and with horizontal scrollbar.
>>>
>>>I placed an editbox control into form. However, this control wraps lines
>>>horizontally always and does not have horizontal scroll bar.
>>>
>>>Is it possible to display text file without word wrap in form ?
>>
>>I had an editbox once that I didn't make high enough to show two lines of text and it didn't wrap it. But that may be a case of the cure is worse than the problem...
>
>Maybe to make editbox wider than form and emulate scrolling
>in some way?

There is one comic solution:
1. You really make editbox wider, much wider then form, wide enough to exclude wrapping, Editbox.Left=0 (initially).
2. This editbox will overlay grid except the lower part of it, i.e. horizontal scrollbar.
3. Grid.Scrolled event will be used to change Editbox.Left property, so you will move Editbox.Left to negative area while scrolling to right.
4. It probably necessary here to have Timer evaluating current text insertion point to move editbox too.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform