New DATAs of TXBrwColumn
nBmpWidth
nClrBmpBack
Purpose and Usage:
At present, when a column has both bitmap and text, text is displayed leaving a margin equal to the width of the bitmap plus 5 pixels. When bitmaps of different sizes are used, the left margin of the text is not uniform and the display suffers from non-uniform look. Here is an example:
The display gets worse if we include a bitmap of a larger size. For example, this is how it looks when we add bitmap of 128x128 pixel size.
Also the row-height is calculated based on the maximum height of the bitmap of the column and this calculation effects the entire browse. Except for specifying the row height, the programmer has no control of the margin left for text.
Changes in FWH 16.11:
Effect of bitmap dimensions on the width of column and row height are restricted to a maximum of 48 pixels. Depending on the resizing requirements oCol:nBmpWidth is decided as the maximum width of the largest resized bitmap. The bitmap is displayed centered in the rectangle of oBrw:nRowHeight and oCol:nBmpWidth. Text is displayed leaving a margin of 5 pixels after oCol:nBmpWidth. If required, the programmer can specify oBrw:nRowHeight and oCol:nBmpWidth, overriding the default calculations.
Here is the same browse with default calculations by xbrowse.
The programmer can change the appearance by specifying oBrw:nRowHeight and/or oCol:nBmpWidth to his taste.
In addition, the programmer can specify a separate background color for the vertical band of the bitmap area of assigning oCol:nClrBmpBack. Example: