PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WDM21 - Looper "Row" Height
WDM21 - Looper "Row" Height
Iniciado por guest, 03,sep. 2016 23:48 - 2 respuestas
Publicado el 03,septiembre 2016 - 23:48
Hi All

I have a multi line string in a looper. The looper "Row" is not increasing in height to wrap the string to display the full content of the string. It is not treating it as mult line text. How do I fix that?

Cheers
André
Publicado el 04,septiembre 2016 - 13:23
Hi. You can use TextHeight to calculate the text height and then change the row height

nNuevaLinea is int = LooperAddLine(LOOP_ResultadoConsultaBOE,sDepartamento,sTitulo,stDato.sEnlace,LooperCount(LOOP_ResultadoConsultaBOE) + 1,stDato.sReferencia,stDato.dFecha)

nAlturaDep is int = LOOP_ResultadoConsultaBOE[nNuevaLinea].STC_Departamento..Height
IF stDato.sDepartamento <> "" THEN
//LOOP_ResultadoConsultaBOE[nn].STC_Departamento = sDepartamento
IF NOT InTestMode() THEN ////// Debido a que el simulador casca
nAlturaDep = TextHeight(LOOP_ResultadoConsultaBOE.STC_Departamento,sDepartamento,tMultiline)
END
END

nAlturaTit is int = LOOP_ResultadoConsultaBOE[nNuevaLinea].STC_Titulo..Height
IF stDato.sTitulo <> "" THEN
//LOOP_ResultadoConsultaBOE[nn].STC_Titulo = sTitulo
IF NOT InTestMode() THEN ////// Debido a que el simulador casca
nAlturaTit = TextHeight(LOOP_ResultadoConsultaBOE.STC_Titulo,sTitulo,tMultiline)
END
END
Publicado el 04,septiembre 2016 - 16:24
Hi Ruben

Sweet. Thanks for that. I will give that a shot.

Cheers
André