VOTools for Visual Objects  
and Vulcan.NET  

bBrowser => Tips & Tricks => How to create a multiline column caption    




 from bBrowser
1.4
  bBrowser 1.4 (Limited)
yes
 

How to create a multiline column caption

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 := "Order"+CRLF+"Quantity"
ENDIF

oBrowser:Recalculate()
oBrowser:Redraw()

Copyright © 2003-2015 BEFO GmbH