Urgent : Listbox problem in FWH 15.09

Re: Urgent : Listbox problem in FWH 15.09

Postby Enrico Maria Giordano » Tue Sep 29, 2015 9:52 am

Antonio,

Antonio Linares wrote:Enrico,

Could you provide a simple example to reproduce it ?

thanks,


Not yet, sorry. But I sent you an image showing the problem.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Urgent : Listbox problem in FWH 15.09

Postby Antonio Linares » Tue Sep 29, 2015 2:11 pm

Enrico,

I am testing samples\testbrow.prg here and it looks ok.

If someone could provide an example to reproduce it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Urgent : Listbox problem in FWH 15.09

Postby driessen » Tue Sep 29, 2015 3:25 pm

Antonio,

It is a WBROWSE in which the problem occurs. This class has'nt changed in FWH 15.09, so the reason must be somewhere else.

What is the problem : if the value of a cell in a WBROWSE is empty, than the background of that cell is white and not the selected color.
Or, if a line is selected (normally the whole line is blue) than the empty fields stay white.

Here is another example.
Image

I'm very sorry but this problem needs to be solved asap.

Thanks.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Urgent : Listbox problem in FWH 15.09

Postby Antonio Linares » Tue Sep 29, 2015 4:25 pm

Ok, I built an example to reproduce the bug:

Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   local oWnd, oBrw, aValues := { { "one", "two", "three" },;
                                  { "four", "", "six" } }

   DEFINE WINDOW oWnd

   @ 1, 1 LISTBOX oBrw ;
      FIELDS "", "", "" ;
      COLSIZES 100, 100, 100 OF oWnd SIZE 300, 200

   oBrw:SetArray( aValues )
   oBrw:bLine = { || { aValues[ oBrw:nAt, 1 ], aValues[ oBrw:nAt, 2 ], aValues[ oBrw:nAt, 3 ] } }

   ACTIVATE WINDOW oWnd

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Urgent : Listbox problem in FWH 15.09

Postby Antonio Linares » Tue Sep 29, 2015 4:31 pm

Fixed, it was a little bug in function ExtTextOut()

Michel, do you need the libs for Borland ?

Working code:
Code: Select all  Expand view
HB_FUNC( EXTTEXTOUT ) // ( hDC, nRow, nCol, aRect, cText, nStyle )  --> lSuccess
{
   RECT     rct;
   UINT     fuOptions;
   LPCSTR   szText;
   WORD     wLen  = 0;

   if ( ( hb_pcount() > 4 ) && ( HB_ISCHAR( 5 ) ) )
   {
      szText   = hb_parc( 5 );
      wLen     = hb_parclen( 5 );
   }
   // if ( wLen > 0 )
   // {
      fw_parRect( 4, &rct );
      fuOptions = ( hb_pcount() > 5 ? hb_parnl( 6 ) : ETO_OPAQUE | ETO_CLIPPED );

      if ( isutf8( szText, wLen ) )
      {
         LPWSTR pW = UTF8toUTF16( szText );
         hb_retl( ExtTextOutW( ( HDC ) fw_parH( 1 ), hb_parni( 3 ), hb_parni( 2 ),
                  fuOptions, &rct, pW, wcslen( pW ), 0 ) );
         hb_xfree( pW );
      }
      else
         hb_retl( ExtTextOutA( ( HDC ) fw_parH( 1 ), hb_parni( 3 ), hb_parni( 2 ),
                  fuOptions, &rct, szText, wLen, 0 ) );

   // } else hb_retl( 0 );
}
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Urgent : Listbox problem in FWH 15.09

Postby Antonio Linares » Tue Sep 29, 2015 4:38 pm

Michel,

I just sent you the modified libs to your email
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Urgent : Listbox problem in FWH 15.09

Postby Enrico Maria Giordano » Tue Sep 29, 2015 4:47 pm

Antonio,

Antonio Linares wrote:Fixed, it was a little bug in function ExtTextOut()


Great! I thought to a bug in ExtTextOut() from the beginning but I didn't know that it was been changed.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Urgent : Listbox problem in FWH 15.09

Postby Enrico Maria Giordano » Tue Sep 29, 2015 4:49 pm

Antonio,

let us know when a new FWH build will be available. :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Urgent : Listbox problem in FWH 15.09

Postby driessen » Tue Sep 29, 2015 9:41 pm

Thanks a lot, Antonio.

Problem solved
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Urgent : Listbox problem in FWH 15.09

Postby Antonio Linares » Tue Sep 29, 2015 9:53 pm

Enrico,

In one day or two we will publish a revised build.

If you need the libs in the meantime, please let me know it and I will email them to you, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests