How to create a multiline column caption

Requirement: bBrowser 1.4

 

To define a multiline column caption, the height of the column captions must be set in the bBrowser. Afterwards with the constant CRLF a wordwrap can be defined in the column captions. At last with the methods bBrowser:Recalculate() and bBrowser:Redraw() the bBrowser must be recalculated and redrawn.

The following code fragment demonstrates the proceeding:

LOCAL oColumn   AS bDataColumn

 

oBrowser:CaptionHeight := 32

 

oColumn := oBrowser:GetColumn(#Quantity)

IF !Empty(oColumn)

  oColumn:Caption := "Bestell-"+CRLF+"menge"

ENDIF

 

oBrowser:Recalculate()

oBrowser:Redraw()