Richedit

Post Reply
jpcavagnaro

Richedit

Post by jpcavagnaro »

Hola, como hago para que el texto del Richedit no aparezca cortado.

Que se ajuste al tamaño de la pantalla

Saludos
Jorge
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: Richedit

Post by Jimmy »

hi,

"Normal" you have to add Style DT_WORDBREAK
but it seem that assign .T. to hScroll did the Job
greeting,
Jimmy
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: Richedit

Post by Jimmy »

hi,

correction : do NOT use Option HSCROLL

i have test it using c:\fwh\samples\FWEXPLOR.PRG

Code: Select all | Expand

   @ oWnd:oBar:nHeight, nWBrw RICHEDIT5 oRTF VAR cRTF OF oWnd ;
        SIZE oWnd:nWidth - ( nWBrw + 18 ), oBrw:nHeight*1.82 PIXEL NOBORDER  // HSCROLL
HSCROLL mean : use Horizontal Scrollbar when need but than it will NOT "wrap" Text
remove HSCROLL mean : NO Scrollbar so it will "warp" Text
greeting,
Jimmy
jpcavagnaro

Re: Richedit

Post by jpcavagnaro »

Perfecto, lo solucione con SIZE oWndr:nWidth, owndr:nHeight

Muchas gracias.
Saludos
Jorge
Post Reply