Navigation:  Classes > bBrowser >

bBrowser:AdjustCaptionHeight()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Adjust the height of column captions.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:AdjustCaptionHeight([<lRecalculate>]) Æ lAdjust

Arguments

<lRecalculate>A logical value that defines whether the browser is to be recalculated, if the height of the column captions were adjusted. If this argument is not specified, the default value TRUE is used.
Data Type:Logic

Return Value

lSuccessA logical value that indicates whether the height of the column captions was adjusted.
TRUEThe height was adjusted.
FALSEThe height was not adjusted.
Data Type:Logic

Description

bBrowser:AdjustCaptionHeight() recalculates the height of the column caption of all opened columns.

 

Caption

 

The method is called automatically by the bBrowser if the access bBrowser:AutoCaptionHeight contains the value TRUE and

a new column is opened or

an opened column is closed.

 

Afterwards, the adjusted height can be determined with the access bBrowser:CaptionHeight.

 

So that the new caption height is shown correctly in the bBrowser, this must be redrawn with the method bBrowser:Redraw().

Samples

In the following sample the method bBrowser:AdjustCaptionHeight() is invoked. Provided that the height was adjusted, the bBrowser is redrawn.

 

// adjust height of column caption

IF oBrowser:AdjustCaptionHeight()

 // redraw browser

 oBrowser:Redraw()

ENDIF

See Also

bBrowser:AdjustColumnBands()

bBrowser:AdjustFooterHeight()

bBrowser:AdjustRecordGroupWidth()

bBrowser:AutoCaptionHeight

bBrowser:CaptionHeight

bBrowser:Redraw()

bBrowserColumn:CalculateHeightOfCaption()

bBrowserColumn:CaptionHeight

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_adjustcaptionheight.htm