FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour different size bitmas in a button bar
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
different size bitmas in a button bar
Posted: Mon Aug 31, 2009 05:03 PM

Hi,
I've just upgrade to latest version of fwh.
I've compiled a program and I found that since the bitmaps are of different sizes
also the button bar appears across lopsided.

DEFINE BUTTON oBtn1 RESOURCE "one" OF oBar PROMPT "Title1" ACTION Action1() NOBORDER

DEFINE BUTTON oBtn2 RESOURCE "two" OF oBar PROMPT "Title2" ACTION Action2() NOBORDER

Compiled wit a 2006 version the button bar is regular!
Is there any clause to correct automatically bmp dimensions?
Thanks in advance
marco

Marco Boschi
info@marcoboschi.it
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: different size bitmas in a button bar
Posted: Tue Sep 01, 2009 01:05 AM
Marco,

There used to be an ADJUST clause but here is a note from the help file of a newer version:

Note: The clause ADJUST is not supported because now the bitmaps background color is automatically adjusted to his window or control conteiner. The pixel 0,0 (Left-Top) indicates the mask color to use for the adjustment. It is important that the color in that pixel is not used on any other part of the bitmap except where the mask should be applied. This kind of color adjustment is not possible with bitmap streching


So it seems you will need to resize them using a graphics program.

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: different size bitmas in a button bar
Posted: Tue Sep 01, 2009 02:13 AM

The ADJUST clause still there and it also works. But it does not work the way we expect and like. This clause resizes the bitmap to the full size of the button and the results are not acceptable.

It is better for us to resize the bitmaps first with a graphics program as advised by Mr James

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion