different size bitmas in a button bar

different size bitmas in a button bar

Postby MarcoBoschi » Mon Aug 31, 2009 5: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
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: different size bitmas in a button bar

Postby James Bott » Tue Sep 01, 2009 1: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: different size bitmas in a button bar

Postby nageswaragunupudi » Tue Sep 01, 2009 2: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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests

cron