FWH 16.11 : XBrowse Bitmap and Text Alignment

FWH 16.11 : XBrowse Bitmap and Text Alignment

Postby nageswaragunupudi » Tue Nov 29, 2016 7:16 am

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:

Image

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.

Image

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.

Image

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:

Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10663
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: FWH 16.11 : XBrowse Bitmap and Text Alignment

Postby nanoespinoza » Sat Jul 22, 2017 11:55 pm

Dear Mr. Rao

You could give an example of how to get the last example with xBrwose

Regards

Fernando Espinoza A.
nanoespinoza
 
Posts: 141
Joined: Thu Mar 16, 2017 4:08 pm
Location: Ecuador


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests