FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TBITMAP with SCROLL Problem.
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
TBITMAP with SCROLL Problem.
Posted: Fri Nov 13, 2009 09:51 PM

Hi,

I have realized that when I use the SCROLL scope in TImage derived from TBitmap and click the scroll buttons it behaves strange. When I click Vertical scroll, Bitmaps moves horizontal. When I click Horizontal scroll, Bitmaps moves vertical.

Is there any more setting in scroll?

Thanks in advance.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TBITMAP with SCROLL Problem.
Posted: Sat Nov 14, 2009 07:35 AM

Scrollbars are working correctly for me. ( fwh 9.10 )

Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: TBITMAP with SCROLL Problem.
Posted: Sat Nov 14, 2009 08:06 AM

Thanks Rao,

I will try to prepare a working sample and send to here?

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: TBITMAP with SCROLL Problem.
Posted: Sat Nov 14, 2009 01:16 PM

Hi Rao,

As I said before I prepared a sample. It works fine in a standalone prg. But it does not work in my program.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TBITMAP with SCROLL Problem.
Posted: Sat Nov 14, 2009 01:57 PM
But I am able to reproduce your problem in this small program
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

LOCAL oDlg, obmp

   DEFINE DIALOG oDlg  SIZE 400, 500 TRANSPARENT

   @ 10,10 IMAGE oBmp OF oDlg PIXEL ;
      FILE '\fwh\bitmaps\olga1.jpg' SCROLL ;
      SIZE 150,212 Update

   ACTIVATE DIALOG oDlg CENTERED

return nil

Seems to be a bug
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TBITMAP with SCROLL Problem.
Posted: Sat Nov 14, 2009 02:06 PM

i also found out that if the DIALOG is TRANSPARENT the scrollbars are behaving wrongly.

If the dialog is NOT TRANSPARENT, the scroll bars are behaving correctly

Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: TBITMAP with SCROLL Problem.
Posted: Sat Nov 14, 2009 04:32 PM

Exactly, You are right. It is related with dialogs Transparent clause.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: TBITMAP with SCROLL Problem.
Posted: Sun Nov 15, 2009 05:39 AM
Hakan, Rao,

Already fixed. It was a little bug in Class TBitmap :-)

In both calls to TransBmp(), simply swap ::nX with ::nY:
Code (fw): Select all Collapse
                  TransBmp( ::hBitmap, ::nWidth(), ::nHeight(), nZeroZeroClr, ::hDC,;
                            ::nY, ::nX, ::nWidth(), ::nHeight() )

This fix is included in next FWH 9.11 build
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion