FWH 8.10 and ButtonBmp

FWH 8.10 and ButtonBmp

Postby Marco Turco » Wed Oct 22, 2008 8: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: FWH 8.10 and ButtonBmp

Postby IBTC » Wed Oct 22, 2008 8:32 am

Marco Turco wrote:Any solution ?


I think this is because of the change from
Code: Select all  Expand view
DEFAULT ... cLayout := "CENTER"
to
Code: Select all  Expand view
DEFAULT ... cLayout := "TOP"
.

Workaround: Insert in
Code: Select all  Expand view
METHOD Paint() CLASS TBtnBmp
this:

Code: Select all  Expand view
::nLayout := 0


before

Code: Select all  Expand view
PalBtnPaint( ::hWnd, ::hBitmap1, ::hPalette1, ::hBitmap2, ::hPalette2,;
                  ...
                   Upper( ::oWnd:ClassName() ) != "TBAR" )
User avatar
IBTC
 
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany

Postby Marco Turco » Wed Oct 22, 2008 8: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 74 guests