Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to display text without word wrap?
Message
From
28/10/1998 15:59:32
 
 
To
28/10/1998 15:35:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00151158
Message ID:
00151918
Views:
26
>>>>>>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, can you provide some sample code how to implement this?
>>I need only report previewing so it may be a read-only editbox
>>without timer?
>
>Sorry, but I had no time to write any code writing that reply :), but it seems to work Ok. BTW, probably I was wrong about timer: you don't need in it. Instead, you will check for arrow keys in Editbox.Keypress event. Surely, you should experiment with grid content to correlate it with actual editbox width.

I'm not sure I can implement this in a non-comic way.

I think I will try to use report nowait command first
and implement save as functionality in some other ways.

I'm intrested has anybody used report nowait? Some time ago
I posted a complicated example of using this it UT and in Compuserver but have'nt got any reply's.

In one message you recommended its use to resolve preview toolbar docking
problem but have you really used it?

Report nowait command is in my users dreams: they want modeless
report windows available in screen. Maybe it requires to make
a global report manager which is called from timer and
enables/disables menus and toolbars according to the foregroud
report. Genrepox does something like this. However, maybe in
next release vfp uses vs common report writer so this work may
be useless. It seems that ms will no longer improve vfp own
report writer.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform