Urgent : Listbox problem in FWH 15.09

Urgent : Listbox problem in FWH 15.09

Postby driessen » Mon Sep 28, 2015 12:08 pm

Hello,

In FWH 15.08 a listbox I define looks like :

Image

In FWH 15.09 the same listbox looks like :

Image

How is that possible? I want the look of FWH 15.08 back.

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 driessen » Mon Sep 28, 2015 12:50 pm

Hello,

Meanwhile, I noticed what has been changed.

I have defined this : cLbx:nClrPane := CLR_HGRAY.

If the field is empty, nClrPane becomes white, if I put one blanc into the field, nClrPane becomes gray again.

In 15.08, nClrPane was always gray, even if the field was empty.
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 Enrico Maria Giordano » Mon Sep 28, 2015 1:35 pm

I noticed that wrong behaviour too.

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 karinha » Mon Sep 28, 2015 2:59 pm

Code: Select all  Expand view

#Define CLR_LGRAY          RGB( 230, 230, 230 )
#Define CLR_LGREEN         RGB( 190, 215, 190 )

    oLbx:nClrPane      := { || IIF( ( oLbx:cAlias )->( OrdKeyNo() ) %2 == 0, ;
                               CLR_LGREEN, CLR_LGRAY ) }
 


Regards

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7804
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Urgent : Listbox problem in FWH 15.09

Postby karinha » Mon Sep 28, 2015 3:05 pm

Or

Code: Select all  Expand view

   oLbx:nClrPane     := { || IIF( ( oLbx:cAlias)->( OrdKeyNo()) %2 == 1, ;
                                  {CLR_WHITE, if( fecha> date(), CLR_RED,
   RGB(204,255,255))}, {CLR_WHITE, if( fecha> date(), CLR_RED,  RGB(127,192,144))} )}
 


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7804
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Urgent : Listbox problem in FWH 15.09

Postby Antonio Linares » Mon Sep 28, 2015 8:11 pm

Michel,

We are going to fix it asap

Sorry about it, in our tests we did not noticed 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 » Mon Sep 28, 2015 8:35 pm

Antonio,

If I compare LISTBOX.PRG in FWH 15.08 with the one in FWH 15.09, I notice that the only difference is the unicode.

Maybe a hint for you?

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 Enrico Maria Giordano » Mon Sep 28, 2015 8:48 pm

Michel,

it's not listbox.prg, it's wbrowse.prg, or something similar. Or am I wrong?

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 » Mon Sep 28, 2015 9:15 pm

Enrico,

First I thought that too. But WBROSE.PRG hasn't been changed in FWH 15.09.
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 Enrico Maria Giordano » Mon Sep 28, 2015 9:19 pm

Michel,

but your image looks like a browse, not a listbox.

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 » Mon Sep 28, 2015 10:56 pm

Enrico,

This is the code I used :
Code: Select all  Expand view
REDEFINE LISTBOX ShowGet VAR ShowLbx FIELDS "","","","","","","","","" ID 101 of ShowDlg HEADERS cSP+;
         "Aard  (Dbl=basisgeg.)",cSP+"Naam - omschr. - data - nr.  (Dbl=doss.geg.)",cSP+"Telefoon",cSP+"G.S.M.",cSP+"Telefax",cSP+;
         "Email-adres",cSP+"Adres",cSP+"Land + postnr.",cSP+"Plaats" FONT ShowFont2 ;
         ON RIGHT CLICK (IF(ActieTV,(ShowTim:DeActivate(),DsPopUp(nRow,nCol,cCol[1]),DeleteObject(pMenu),MEMORY(-1),SYSREFRESH(),;
         IF(!EMPTY(TVactie),(Eval(&(TVactie)),TVactie:="{|| zNul()}"),.T.),ShowTim:Activate()),.T.))
ShowLbx:bLine         := {||{ShowArr[ShowLbx:nAt,1],ShowArr[ShowLbx:nAt,2],ShowArr[ShowLbx:nAt,6],ShowArr[ShowLbx:nAt,7],ShowArr[ShowLbx:nAt,8],;
                             ShowArr[ShowLbx:nAt,9],ShowArr[ShowLbx:nAt,10],ShowArr[ShowLbx:nAt,11],ShowArr[ShowLbx:nAt,12]}}
ShowLbx:aColSizes     := cCol
ShowLbx:nAt           := 1
ShowLbx:bGotop        := {||ShowLbx:nAt:=1}
ShowLbx:bGoBottom     := {||ShowLbx:nAt := Eval( ShowLbx:bLogicLen )}
ShowLbx:bSkip         := {|nWant,nOld|nOld:=ShowLbx:nAt,ShowLbx:nAt+=nWant,ShowLbx:nAt:=Max(1,Min(ShowLbx:nAt,Eval(ShowLbx:bLogicLen))),ShowLbx:nAt-nOld}
ShowLbx:bLogicLen     := {||Len(ShowArr)}
ShowLbx:nLineStyle    := US->ULIJN
ShowLbx:nClrText      := {|| SelColor(ShowArr[ShowLbx:nAt,3],1,19)}
ShowLbx:nClrForeFocus := {|| SelColor(ShowArr[ShowLbx:nAt,3],2,19)}
ShowLbx:nClrPane      := CLR_HGRAY
ShowLbx:bGotFocus     := {|| ShowKey_On() }
ShowLbx:bLostFocus    := {|| ShowKey_Off()}
ShowLbx:bLDblClick    := {|nRow,nCol| EditGeg(nRow,nCol,ShowLbx:nAt,cCol[1],cCol[2])} 
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 Enrico Maria Giordano » Mon Sep 28, 2015 11:15 pm

Michel,

it's a TWBrowse (wbrowse.prg).

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 » Mon Sep 28, 2015 11:53 pm

Enrico,

Could you provide a simple example to reproduce it ?

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

Re: Urgent : Listbox problem in FWH 15.09

Postby Antonio Linares » Mon Sep 28, 2015 11:56 pm

In both functions DrawText() and DrawTextEx() there is a:

if ( wLen > 0 )

I want to check if that is the problem but I am unable to reproduce the error here
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 7:09 am

Antonio,

If I change my example to :
Code: Select all  Expand view
ShowLbx:bLine := {||{IF(EMPTY(ShowArr[ShowLbx:nAt,1])," ",ShowArr[ShowLbx:nAt,1]),IF(EMPTY(ShowArr[ShowLbx:nAt,2])," ",ShowArr[ShowLbx:nAt,2]),IF(EMPTY(ShowArr[ShowLbx:nAt,6])," ",ShowArr[ShowLbx:nAt,6]),IF(EMPTY(ShowArr[ShowLbx:nAt,7])," ",ShowArr[ShowLbx:nAt,7]),IF(EMPTY(ShowArr[ShowLbx:nAt,8])," ",ShowArr[ShowLbx:nAt,8]),IF(EMPTY(ShowArr[ShowLbx:nAt,9])," ",ShowArr[ShowLbx:nAt,9]),IF(EMPTY(ShowArr[ShowLbx:nAt,10])," ",ShowArr[ShowLbx:nAt,10]),IF(EMPTY(ShowArr[ShowLbx:nAt,11])," ",ShowArr[ShowLbx:nAt,11]),IF(EMPTY(ShowArr[ShowLbx:nAt,12])," ",ShowArr[ShowLbx:nAt,12])}}
then everything is ok.
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

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 60 guests