Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to display text without word wrap?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00151158
Message ID:
00155589
Vues:
24
>>>Hi Andrus,
>>>
>>>>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.
>>>
>>>MODIFY MEMO takes two WINDOW clauses. One is the window in which it should be displayed, the other one a window defintion it should use for the edit window. Something like this can be used:
>>>
>>>DEFINE WINDOW _Edit ;
>>>   FROM 1,1 TO 10,10 ;
>>>   NONE ;
>>>   NOGROW
>>>MODIFY MEMO cMemo WINDOW _Edit IN WINDOW Form1 NOWAIT
>>>You should check out the DEFINE WINDOW command to find all clauses you want to use for your memo window.
>>>
>>>>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?
>>>
>>>You can resize a MODIFY MEMO window with the ZOOM WINDOW command.
>>
>>Christof,
>>Using define window it was not possible to display scrollbars.
>>
>>After spendig a number of hours I implemented it: an object
>>oriented modify file command without word wrap!!
>>
>>Here is the code:
>>
>>In form init:
>>
>>this.resize()
>>
>>
>>In form resize()
>>
>>local vtop, vleft
>>vtop = this.top
>>vleft = this.left
>>this.top=-sysmetric(9) -sysmetric(4)
>>this.left = - sysmetric(3)
>>this.width = this.width-sysmetric(5)+4*sysmetric(3)
>>MODIFY file c:\autoexec.bat IN WINDOW FORM1 nowait window form1
>>this.top = m.vtop
>>this.left = m.vleft
>>this.width = this.width+sysmetric(5)-4*sysmetric(3)
>>this.lockscreen = .f.
>>
>>This causes the editing window to cover the whole screen. However, it is possible
>>to provide place for buttons by changing resize() event a bit.
>
>Hi Andrus,
>
>I stayed out of this because I misunderstood your problem (and maybe still do). However, the foxtools library allows you to set the properties of an edit window, including font, font size, and, yes, word wrap. The function to do this is _EdSetEnv().

George,

if fpw 2.6 I use

MODIFY FILE myreport NOEDIT

to display my text-based reports. They must be shown without
word wrap since lines are long. In modal environment, this works OK.

I want the same thing to be done in modeless forms in vfp without
using activex.

Editbox wraps text, putting modi file inside form is difficult,
emulating modi file with grid doesn't allow to select multiple
partial lines.

George, is there an easy way to do it?
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform