Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to display text without word wrap?
Message
From
29/10/1998 14:12:54
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00151158
Message ID:
00152446
Views:
21
>Hi Andrus,
>
>>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 ?
>
>Beside using an RTF control and the solution Ed suggested, there's a third possibility: An edit window (MODIFY MEMO). You can activate an edit window within a form and you can manipulate it in a way that let it look like an edit box. Via the rightclick menu or with some FoxTools function you can turn on/off word wrapping for that edit window. The disadvantage of course is that you only have little possibilities to control the edit window, since it has no methods. So it really depends on what you need.
>

Thank you. This is VERY good idea!
I created an empty form and added the following code:

form init event:

create cursor test ( t m )
append blank
this.resize()

form resize event:

this.lockscreen = .t.
this.height = 1.5*this.height
this.width = 1.5*this.width
close memo t
set resource off
modify memo t nowait in window form1
set resource on
this.height = this.height/1.5
this.width = this.width/1.5
this.lockscreen = .f.

Problems:
1. How I can hide memo window title bar: want move memo window up
by title bar height of pixels?
2. How I can disable memo window resizing? I want to enable only
form resizing.
3. set resource command causes disk access. I need set resource on
for other memo windows and this command is not scoped to private
data session. How to avoid disk sound during resize?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform