Hi!
I use browser columns with multiline text.
Is it possible to avoid the automatic word break in the columns?
Best regards, Timm.
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.
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
Multiline text in browser columns
Hi!
Any ideas?
Best regards, Timm.
Any ideas?
Best regards, Timm.
- ignacio
- Site Admin
- Mensajes: 9254
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Multiline text in browser columns
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
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
Multiline text in browser columns
Hi Ignacio,
works great, many thanks!
Best regards, Timm.
works great, many thanks!
Best regards, Timm.