MENUITEM with BLOCK command executed TWICE. (SOLVED)

Horizon
Posts: 1329
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 6 times
Been thanked: 1 time

Re: MENUITEM with BLOCK command executed TWICE.

Post by Horizon »

:!:
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
User avatar
Antonio Linares
Site Admin
Posts: 42604
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 44 times
Been thanked: 88 times
Contact:

Re: MENUITEM with BLOCK command executed TWICE.

Post by Antonio Linares »

Dear Hakan,

In menu.prg please make these changes: (in the "else")

line 1574:

Code: Select all | Expand

        if ::lPopup
            ::oMenuItemPopup = oMenuItem
         else  
            if ValType( oMenuItem:bBlock ) == "B"
               if oMenuItem:bWhen != nil .and. ! Eval( oMenuItem:bWhen, oMenuItem )
                  return nil
               endif
               ::oLastItem = oMenuItem
               if ::lPopup
                  ::oMenuItemPopup = oMenuItem
               endif
               Eval( oMenuItem:bBlock, oMenuItem )
            endif
         endif


Your example works fine with these changes

These changes will be included in the next FWH build
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 1329
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 6 times
Been thanked: 1 time

Re: MENUITEM with BLOCK command executed TWICE.

Post by Horizon »

Antonio Linares wrote:Dear Hakan,

In menu.prg please make these changes: (in the "else")

line 1574:

Code: Select all | Expand

        if ::lPopup
            ::oMenuItemPopup = oMenuItem
         else  
            if ValType( oMenuItem:bBlock ) == "B"
               if oMenuItem:bWhen != nil .and. ! Eval( oMenuItem:bWhen, oMenuItem )
                  return nil
               endif
               ::oLastItem = oMenuItem
               if ::lPopup
                  ::oMenuItemPopup = oMenuItem
               endif
               Eval( oMenuItem:bBlock, oMenuItem )
            endif
         endif


Your example works fine with these changes

These changes will be included in the next FWH build


Hi Antonio,

I use unmodifed fwh libs. Can you please send me change libs.

Thank you.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
User avatar
Antonio Linares
Site Admin
Posts: 42604
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 44 times
Been thanked: 88 times
Contact:

Re: MENUITEM with BLOCK command executed TWICE.

Post by Antonio Linares »

Hakan,

What C compiler do you use ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 1329
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 6 times
Been thanked: 1 time

Re: MENUITEM with BLOCK command executed TWICE.

Post by Horizon »

Antonio Linares wrote:Hakan,

What C compiler do you use ?


Harbour & MSVC 2019 & FWH 21.02
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
User avatar
Antonio Linares
Site Admin
Posts: 42604
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 44 times
Been thanked: 88 times
Contact:

Re: MENUITEM with BLOCK command executed TWICE.

Post by Antonio Linares »

Already sent to your email
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 1329
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 6 times
Been thanked: 1 time

Re: MENUITEM with BLOCK command executed TWICE.

Post by Horizon »

Antonio Linares wrote:Already sent to your email


Thank you Antonio,

It solved my problem.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Post Reply