>>>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