FWH 8.10 and ButtonBmp

Post Reply
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

FWH 8.10 and ButtonBmp

Post 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.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
IBTC
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany
Contact:

Re: FWH 8.10 and ButtonBmp

Post 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" )
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Post by Marco Turco »

Yes,
after I have replaced the default cLayout value in "CENTER" all displayed well.

Thank you for the suggest.
Best Regards,

Marco Turco
SOFTWARE XP LLP
Post Reply