Adjust the height of column captions.
<oBrowser>:AdjustCaptionHeight([<lRecalculate>]) Æ lAdjust
|<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.|
|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.|
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().
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
// redraw browser