FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Richedit
Posts: 155
Joined: Tue Dec 30, 2008 03:07 AM

Richedit

Posted: Sat Jan 21, 2023 12:53 PM

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

Que se ajuste al tamaño de la pantalla

Saludos

Jorge

Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

Re: Richedit

Posted: Sat Jan 21, 2023 04:15 PM

hi,

"Normal" you have to add Style DT_WORDBREAK

but it seem that assign .T. to hScroll did the Job

greeting,

Jimmy
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

Re: Richedit

Posted: Sat Jan 21, 2023 10:39 PM
hi,

correction : do NOT use Option HSCROLL

i have test it using c:\fwh\samples\FWEXPLOR.PRG
Code (fw): Select all Collapse
   @ 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
Posts: 155
Joined: Tue Dec 30, 2008 03:07 AM

Re: Richedit

Posted: Sun Jan 22, 2023 01:44 PM

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

Muchas gracias.

Saludos

Jorge

Continue the discussion