Richedit

Richedit

Postby jpcavagnaro » 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
Jorge
Saludos.
jpcavagnaro
 
Posts: 155
Joined: Tue Oct 11, 2016 1:02 pm
Location: Luján, bs. as.

Re: Richedit

Postby Jimmy » Sat Jan 21, 2023 4:15 pm

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: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Richedit

Postby Jimmy » 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: Select all  Expand view  RUN
  @ 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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Richedit

Postby jpcavagnaro » Sun Jan 22, 2023 1:44 pm

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

Muchas gracias.
Saludos
Jorge
Jorge
Saludos.
jpcavagnaro
 
Posts: 155
Joined: Tue Oct 11, 2016 1:02 pm
Location: Luján, bs. as.


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests