Purpose
Adjust the height of column captions.
Class
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
lSuccess | A logical value that indicates whether the height of the column captions was adjusted. |
TRUE | The height was adjusted. |
FALSE | The height was not adjusted. |
Data type: | Logic |
Description
bBrowser:AdjustCaptionHeight() recalculates the height of the column caption of all opened columns.
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
bBrowserColumn:CalculateHeightOfCaption()
Page url: http://www.YOURSERVER.com/index.html?bbrowser_adjustcaptionheight.htm