In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Multiline text in browser columns

Xailer professional forum in English
Responder
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Multiline text in browser columns

Mensaje por Timm »

Hi!
I use browser columns with multiline text.
Is it possible to avoid the automatic word break in the columns?
Best regards, Timm.
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Multiline text in browser columns

Mensaje por Timm »

Hi!
Any ideas?
Best regards, Timm.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9252
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Multiline text in browser columns

Mensaje por ignacio »

Timm escribió el jue, 28 febrero 2013 10:43Hi!
I use browser columns with multiline text.
Is it possible to avoid the automatic word break in the columns?
Best regards, Timm.
Overload TBrwColumn:DefStyle() method:
METHOD DefStyle() CLASS TBrwColumn
LOCAL nStyle, nAlign
nAlign := nAnd( ::FnAlignment, 0x0F )
nStyle := nOr( DT_EDITCONTROL, DT_NOPREFIX )
DO CASE
CASE nAlign == taLEFT
nStyle := nOr( nStyle, DT_LEFT )
CASE nAlign == taRIGHT
nStyle := nOr( nStyle, DT_RIGHT )
CASE nAlign == taCENTER
nStyle := nOr( nStyle, DT_CENTER )
END CASE
IF ::oParent:nDataLines > 1
// nStyle := nOr( nStyle, DT_WORDBREAK ) COMMENTED
ELSE
nStyle := nOr( nStyle, DT_SINGLELINE, DT_VCENTER )
ENDIF
::nDrawTextStyle := nStyle
RETURN nStyle
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Multiline text in browser columns

Mensaje por Timm »

Hi Ignacio,
works great, many thanks!
Best regards, Timm.
Responder