Page 1 of 1

FWH 8.10 and ButtonBmp

Posted: Wed Oct 22, 2008 8:08 am
by Marco Turco
Hi,
I think there is a problem using buttonbmp with FWH8.10.

I am using 16x16 buttonbmp,
with FWH May 2008 they are showed without problems
see www.softwarexp.co.uk/beta/old.png

meanwhile with FWH Oct 2008 they are shifted on top
see www.softwarexp.co.uk/beta/new.png

Any solution ?

Thanks in advance.

Re: FWH 8.10 and ButtonBmp

Posted: Wed Oct 22, 2008 8:32 am
by IBTC
Marco Turco wrote: Any solution ?
I think this is because of the change from

Code: Select all

DEFAULT ... cLayout := "CENTER"
to

Code: Select all

DEFAULT ... cLayout := "TOP"
.

Workaround: Insert in

Code: Select all

METHOD Paint() CLASS TBtnBmp
this:

Code: Select all

::nLayout := 0
before

Code: Select all

PalBtnPaint( ::hWnd, ::hBitmap1, ::hPalette1, ::hBitmap2, ::hPalette2,;
                  ...
                   Upper( ::oWnd:ClassName() ) != "TBAR" )

Posted: Wed Oct 22, 2008 8:47 am
by Marco Turco
Yes,
after I have replaced the default cLayout value in "CENTER" all displayed well.

Thank you for the suggest.