How to hide column captions

Requirement: bBrowser 1.4

 

To hide the caption of a single column the value FALSE must be assigned to the access bDataColumn:CaptionVisible. Afterwards, the bBrowser must be redrawn with the method bBrowser:Redraw().

The following code fragment hides the caption of the column #LASTNAME:

LOCAL oColumn   AS bDataColumn

 

oColumn := oBrowser:GetOpenColumn(#LASTNAME)

IF !Empty(oColumn)

  oColumn:CaptionVisible := False

  oBrowser:Redraw(#Caption)

ENDIF

 

To hide all column captions in the bBrowser the value 0 must be assigned to the access bBrowser:CaptionHeight. Unlike hiding a single column caption the complete area of the column captions is hidden.

The following code fragment hides all column captions:

oBrowser:CaptionHeight := 0