VOTools for Visual Objects  
and Vulcan.NET  

bBrowser => Tips & Tricks => How to hide column captions    




 from bBrowser
1.4
  bBrowser 1.4 (Limited)
yes
 

How to hide column captions

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

Copyright © 2003-2015 BEFO GmbH