FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH 8.10 and ButtonBmp
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
FWH 8.10 and ButtonBmp
Posted: Wed Oct 22, 2008 08:08 AM

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
Posts: 103
Joined: Sat Oct 18, 2008 08:13 PM
Re: FWH 8.10 and ButtonBmp
Posted: Wed Oct 22, 2008 08:32 AM
Marco Turco wrote:
Any solution ?


I think this is because of the change from
DEFAULT ... cLayout := "CENTER"
to
DEFAULT ... cLayout := "TOP"
.

Workaround: Insert in
METHOD Paint() CLASS TBtnBmp
this:

::nLayout := 0


before

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

Ruediger Alich



---

HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
FWH 8.10 and ButtonBmp
Posted: Wed Oct 22, 2008 08:47 AM

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

Continue the discussion