Page 1 of 1

Richedit

Posted: Sat Jan 21, 2023 12:53 pm
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

Re: Richedit

Posted: Sat Jan 21, 2023 4:15 pm
by Jimmy
hi,

"Normal" you have to add Style DT_WORDBREAK
but it seem that assign .T. to hScroll did the Job

Re: Richedit

Posted: Sat Jan 21, 2023 10:39 pm
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

Re: Richedit

Posted: Sun Jan 22, 2023 1:44 pm
by jpcavagnaro
Perfecto, lo solucione con SIZE oWndr:nWidth, owndr:nHeight

Muchas gracias.
Saludos
Jorge