FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem in barmenu in FWH 20.12
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem in barmenu in FWH 20.12 (solved)
Posted: Tue Jan 05, 2021 03:58 PM

Mr. C. Navarro,

Thank you very much. I added the corrected file menu.prg to my application and the problem is solved.
It will be definite in the next version, I presume.

Thank you once again.

In case you rebuild the lib-file, please can you send it to me? 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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem in barmenu in FWH 20.12 (solved)
Posted: Tue Jan 05, 2021 05:40 PM

Yes, surely a 20.12.1 version will be released

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem in barmenu in FWH 20.12 (solved)
Posted: Tue Jan 05, 2021 08:36 PM

Yes, we are going to publish a FWH 20.12.1 build

many thanks to all

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 03:18 PM

I just wanted to tell you all that I experienced another error in the tMenu class.

I have implemented the tMenu class of FWH 20.08 into my application.
Then I have rebuild my application with FWH 20.08.

Sometimes I get this error : Error BASE/1004 No exported method: EVAL

I need to roll back to FWH 20.08 to run my application without any problems.

I just wanted to let you know about this problem.

Have a nice weekend.

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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 03:52 PM

Please, Can you send me the error.log you get?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 04:56 PM

Cristobal,

Thank you very much. I just send you an e-mail.

Regards.

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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 09:11 PM

It seems that the error is obtained when clicking the right mouse button on an xbrowse, is it?
Have you defined a menu when you press that button?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 09:44 PM

That is a correct conclusion, Cristobal.
A pulldownmenu is defined when clicking the right mouse button. But in this case, I just use wbrowse.
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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 09:52 PM

Please, send me your menu defined

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 10:00 PM
This is my code (I hope you can understand it) :
Code (fw): Select all Collapse
******************************************************************************

STATIC FUNCTION DsBldPopUp(fCol,gCol)

聽 聽LOCAL OldPar := {ALIAS(),INDEXORD(),RECNO()}

聽 聽LOCAL cRet 聽 := .F.
聽 聽LOCAL dRet 聽 := .F.

聽 聽DeleteObject(pMenu)
聽 聽MEMORY(-1)
聽 聽TMenuItem():New():nInitId := 20000
聽 聽SYSREFRESH()

聽 聽pMenu := NIL

聽 聽MENU pMenu POPUP

聽 聽 聽 聽 SELECT MENT
聽 聽 聽 聽 SET ORDER TO 5
聽 聽 聽 聽 GO TOP
聽 聽 聽 聽 DO WHILE !EOF()
聽 聽 聽 聽 聽 聽IF MENT->MNPOPUP = ShowArr[ShowLbx:nAt,17,1] .OR. MENT->MNPOPUP = 15
聽 聽 聽 聽 聽 聽 聽 DO CASE
聽 聽 聽 聽 聽 聽 聽 聽 聽CASE MENT->MNSOORT = 1 ; DsMenuVul(dRet) ; dRet := .F. ; MENU
聽 聽 聽 聽 聽 聽 聽 聽 聽CASE MENT->MNSOORT = 2
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SELECT DOC
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SET ORDER TO 3
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SEEK(VAL(MENT->MNDOC))
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 IF FOUND()
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽IF (MENT->MNPOPUP = 15 .AND. ShowArr[ShowLbx:nAt,17,1] <> 13) .OR. ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 (MENT->MNPOPUP = ShowArr[ShowLbx:nAt,17,1] .AND. ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽(DOC->DOCMAIL = 11 .OR. ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ((ShowArr[ShowLbx:nAt,17,2] = "1" .AND. (DOC->DOCMAIL = 2 .OR. DOC->DOCMAIL = 5 .OR. DOC->DOCMAIL = 6 .OR. DOC->DOCMAIL = 9)) .OR. ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽(ShowArr[ShowLbx:nAt,17,2] = "2" .AND. (DOC->DOCMAIL = 3 .OR. DOC->DOCMAIL = 5 .OR. DOC->DOCMAIL = 7 .OR. DOC->DOCMAIL = 9)) .OR. ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽(ShowArr[ShowLbx:nAt,17,2] = "3" .AND. (DOC->DOCMAIL = 4 .OR. DOC->DOCMAIL = 5 .OR. DOC->DOCMAIL = 8 .OR. DOC->DOCMAIL = 9)) .OR. ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽(ShowArr[ShowLbx:nAt,17,2] <> "1" .AND.ShowArr[ShowLbx:nAt,17,2] <> "2" .AND.ShowArr[ShowLbx:nAt,17,2] <> "3"))))
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 DsMenuVul(dRet,MENT->MNPOPUP,fCol,gCol) ; dRet := .F.
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽ENDIF
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ENDIF
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 SELECT MENT
聽 聽 聽 聽 聽 聽 聽 聽 聽CASE MENT->MNSOORT = 3 ; dRet := .T.
聽 聽 聽 聽 聽 聽 聽 聽 聽CASE MENT->MNSOORT = 4 ; dRet := .F. ; ENDMENU
聽 聽 聽 聽 聽 聽 聽 ENDCASE
聽 聽 聽 聽 聽 聽 聽 cRet := .T.
聽 聽 聽 聽 聽 聽ENDIF
聽 聽 聽 聽 聽 聽SKIP
聽 聽 聽 聽 ENDDO
聽 聽 聽 聽 
聽 聽ENDMENU

聽 聽SELECT(OldPar[1])
聽 聽SET ORDER TO OldPar[2]
聽 聽GOTO OldPar[3]

RETURN(cRet)

******************************************************************************

STATIC PROCEDURE DsMenuVul(mRet,mTel,hCol,iCol)

聽 聽LOCAL cActie := ""

聽 聽DEFAULT(mTel,0)
聽 聽DEFAULT(hCol,0)
聽 聽DEFAULT(iCol,0)

聽 聽IF mRet ; SEPARATOR ; ENDIF

聽 聽IF !EMPTY(cActie := MENT->MNACTIE)
聽 聽 聽 IF hCol < iCol
聽 聽 聽 聽 聽cActie := ALLTRIM(cActie) + ",OpenBase(.T.),EndSub(.T.,,.T.)}"
聽 聽 聽 ELSE
聽 聽 聽 聽 聽cActie := LEFT(ALLTRIM(cActie),LEN(ALLTRIM(cActie))-1) + ",,,,,,," + IF(mTel=1,".F.",".T.") + ",ShowLbx:nAt),OpenBase(.T.),EndSub(.T.,,.T.)}"
聽 聽 聽 ENDIF
聽 聽 聽 cActie := "{|| ToonWindow(),StartSub(.T.,,.T.)," + ALLTRIM(cActie)
聽 聽 聽 MENUITEM (ALLTRIM(IF(EMPTY(MENT->MNPOPTXT),MENT->MNTEKST,MENT->MNPOPTXT)) + IF(!EMPTY(MENT->MNFKEY),CHR(9)+ALLTRIM(MENT->MNFKEY),"")) BLOCK ({|| TvActie := cActie})
聽 聽ELSE
聽 聽 聽 MENUITEM (ALLTRIM(IF(EMPTY(MENT->MNPOPTXT),MENT->MNTEKST,MENT->MNPOPTXT)))
聽 聽ENDIF

RETURN

******************************************************************************

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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 10:13 PM

Please, put your function DSPOPUP

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem in barmenu in FWH 20.12
Posted: Fri Jan 08, 2021 10:38 PM
Code (fw): Select all Collapse
******************************************************************************

STATIC PROCEDURE DsPopUp(dRow,dCol,eCol)

   LOCAL OldPar   := {ALIAS(),INDEXORD(),RECNO()}

   LOCAL cHoogte  := ShowLbx:nHeight
   LOCAL cRij     := 0

   SELECT US
   SET ORDER TO 3
   SEEK(UPPER(nUser))

   cHoogte := (cHoogte - IF(&("US->UDOSOZK"+CheckTermServ())=0,17,&("US->UDOSOZK"+CheckTermServ()))) / (IF(&("US->UDOSGK" +CheckTermServ())=1,30,42) - IF(&("US->UDOSIND"+CheckTermServ()),1,0))
   cRij    := ROUND(((dRow - IF(&("US->UDOSOZK"+CheckTermServ())=0,17,&("US->UDOSOZK"+CheckTermServ()))) / cHoogte) + IF(&("US->UDOSOZC"+CheckTermServ())=0,0.75,&("US->UDOSOZC"+CheckTermServ())),0) - ShowLbx:nRowPos

   IF cRij > 0
      FOR i = 1 TO cRij
          ShowLbx:GoDown()
      NEXT
   ELSE
      FOR i= cRij TO -1
          ShowLbx:GoUp()
      NEXT
   ENDIF

   SYSREFRESH()

   IF ShowArr[ShowLbx:nAt,5] .AND. DsBldPopUp(dCol,eCol)
      ActieTV := .F.
      ACTIVATE POPUP pMenu WINDOW ShowLbx AT dRow,dCol
      pMenu:End()
      ActieTV := .T.
   ENDIF

   SELECT(OldPar[1])
   SET ORDER TO OldPar[2]
   GOTO OldPar[3]

RETURN

******************************************************************************

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

Continue the discussion