TBITMAP with SCROLL Problem.

TBITMAP with SCROLL Problem.

Postby Horizon » Fri Nov 13, 2009 9: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TBITMAP with SCROLL Problem.

Postby nageswaragunupudi » Sat Nov 14, 2009 7:35 am

Scrollbars are working correctly for me. ( fwh 9.10 )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TBITMAP with SCROLL Problem.

Postby Horizon » Sat Nov 14, 2009 8:06 am

Thanks Rao,

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

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TBITMAP with SCROLL Problem.

Postby Horizon » Sat Nov 14, 2009 1: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TBITMAP with SCROLL Problem.

Postby nageswaragunupudi » Sat Nov 14, 2009 1:57 pm

But I am able to reproduce your problem in this small program
Code: Select all  Expand view
#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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TBITMAP with SCROLL Problem.

Postby nageswaragunupudi » Sat Nov 14, 2009 2: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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TBITMAP with SCROLL Problem.

Postby Horizon » Sat Nov 14, 2009 4:32 pm

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

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TBITMAP with SCROLL Problem.

Postby Antonio Linares » Sun Nov 15, 2009 5: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: Select all  Expand view

                  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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests