TXbrowse() display problem?

TXbrowse() display problem?

Postby dutch » Sun Aug 09, 2009 5:49 am

Dear All,

I've got the problem with TXBrowse(), the ::bBmpData has display incorrectly.
When I use this data and focus the Bitmap will not display.
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
Image
Code: Select all  Expand view
    REDEFINE XBROWSE oBrw FIELDS str(SPR->PAR_NO,2) , ;
                                  SPR->PAR_DESC, ;
                                  SPR->PAR_VAR, ;
                                  '' ;
            FONT oFnt ;
            FIELDSIZES 30,300,100,50 ;
            HEADERS 'No.', 'Description', 'Variable', 'Status' ;
            ID 101 ;
            OF oDlg ;
            ALIAS 'SPR' ;
            ON DBLCLICK ( ChngStatus(oBrw) )

//   oBrw:nMarqueeStyle      := MARQSTYLE_HIGHLROW
   oBrw:nRowDividerStyle   := LINESTYLE_LIGHTGRAY
   oBrw:nColDividerStyle   := LINESTYLE_LIGHTGRAY
   oBrw:nHeaderHeight      := 25
   oBrw:nRowHeight         := 22
   oBrw:lHScroll           := .F.
   oBrw:nStretchCol        := STRETCHCOL_LAST
   oBrw:lAllowRowSizing    := .F.
   oBrw:lColDividerComplete:= .T.

   oBrw:aCols[4]:AddResource("RIGHT")
   oBrw:aCols[4]:bBmpData   := { || iif(SPR->PAR_STATUS, 1, 0) }
   oBrw:aCols[4]:nDataBmpAlign := AL_CENTER
   


I think it has effected from 9.07 (not sure)

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: TXbrowse() display problem?

Postby nageswaragunupudi » Sun Aug 09, 2009 7:02 am

>>
I think it has effected from 9.07 (not sure)
>>
Your observation is correct. Hope a fix will be published quickly.
Regards

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

Re: TXbrowse() display problem?

Postby nageswaragunupudi » Sun Aug 09, 2009 7:33 am

I suggest a temporary quick fix to your problem, by replacing the new 9.07 code with the old 9.06 code.

Instead of the present code from lines 8120 to 8126 in xbrowse.prg
Code: Select all  Expand view
        else
            nOldColor := SetBkColor( hDC, nRGB( 255, 255, 255 ) )
            TransBmp( aBitmap[ BITMAP_HANDLE ], aBitmap[ BITMAP_WIDTH ], aBitmap[ BITMAP_HEIGHT ],;
                     aBitmap[ BITMAP_ZEROCLR ], hDC, nBmpCol, nBmpRow, aBitmap[ BITMAP_WIDTH ], ;
                     aBitmap[ BITMAP_HEIGHT ] )
            SetBkColor( hDC, nOldColor )
         endif
 

Please substitute
Code: Select all  Expand view
        else
            if ::oBrw:lTransparent // transparent bitmaps with brush
                nOldColor := SetBkColor( hDC, nRGB( 255, 255, 255 ) )

                TransBmp( aBitmap[ BITMAP_HANDLE ], aBitmap[ BITMAP_WIDTH ], aBitmap[ BITMAP_HEIGHT ],;
                         aBitmap[ BITMAP_ZEROCLR ], hDC, nBmpCol, nBmpRow, aBitmap[ BITMAP_WIDTH ], ;
                         aBitmap[ BITMAP_HEIGHT ] )

                SetBkColor( hDC, nOldColor )
             else
                PalBmpDraw( hDC, nBmpRow, nBmpCol,;
                           aBitmap[ BITMAP_HANDLE ],;
                           aBitmap[ BITMAP_PALETTE ],;
                           aBitmap[ BITMAP_WIDTH ],;
                           aBitmap[ BITMAP_HEIGHT ];
                           ,, ::lBmpTransparent, aColors[ 2 ] )

            endif
         endif
 

It should work for you now.
Regards

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

Re: TXbrowse() display problem?

Postby Antonio Linares » Sun Aug 09, 2009 10:48 am

Dutch,

We are going to provide a fix for it asap :-)
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

Re: TXbrowse() display problem?

Postby dutch » Mon Aug 10, 2009 4:08 am

Dear Rao&Antonioi,

Thanks all,

Rao : It's work fine now.

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests