FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Urgent : Listbox problem in FWH 15.09
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 09: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 02: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
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 03: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.


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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 04:25 PM
Ok, I built an example to reproduce the bug:

Code (fw): Select all Collapse
#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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 04:31 PM
Fixed, it was a little bug in function ExtTextOut()

Michel, do you need the libs for Borland ?

Working code:
Code (fw): Select all Collapse
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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 04:38 PM

Michel,

I just sent you the modified libs to your email

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 04: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 04:49 PM

Antonio,

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

EMG

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 09:41 PM

Thanks a lot, Antonio.

Problem solved

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Tue Sep 29, 2015 09: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Urgent : Listbox problem in FWH 15.09
Posted: Wed Sep 30, 2015 08:37 AM

Antonio, no problem, I can wait.

EMG

Continue the discussion