Hello,
Since I use FWH 20.12, my menuitems in my pulldownmenu's aren't working anymore. There is no reaction at all.
But when I go back to FWH 20.08, everything is working normally.
What has been changed?
Thank you.
Since I use FWH 20.12, my menuitems in my pulldownmenu's aren't working anymore. There is no reaction at all.
But when I go back to FWH 20.08, everything is working normally.
driessen wrote:Indeed, nothing happens. No reaction at all.
I added MsgInfo() before and behind the action that has to be performed.
Even not the Msginfo() do happen.
MENU oFaizMenu POPUP 2007
MENUITEM "Parametreler" ACTION Parametre_FAIZ()
SEPARATOR
---->>> this part
FOR hh:=1 TO 19
hhh:="oApp:GParam:xADI_"+ALLTRIM(STR(hh))
hhh1 := ALLTRIM(&hhh)
IF !EMPTY(Hhh1)
MENUITEM hhh1 BLOCK GenBlock_Faiz(hh)
ENDIF
Next hh
----> this part
SEPARATOR
MENUITEM "YENİ FAİZLER" ACTION Faizler() //Parametre_FAIZ()
SEPARATOR
MENUITEM "Faiz Güncelleme (EVDS)" ACTION Faiz_Update()
ENDMENU
FUNCTION GenBlock_Faiz(nhh)
LOCAL cProc := "Faiz"+ALLTRIM(STR(nhh))
RETURN {|| &(cProc)() }
//----------------------------------------------------------------------------//
METHOD Command( nCommand ) CLASS TMenu
local oMenuItem := ::GetMenuItem( nCommand )
if oMenuItem != nil
if oMenuItem:lRadio
oMenuItem:SetRadioMenuItem( nCommand )
else
if ::lUserRadio
if lAnd( GetMenuState( ::hMenu, nCommand, MF_BYCOMMAND ), MF_CHECKED )
oMenuItem:SetCheck( .F. )
else
oMenuItem:SetCheck( .T. )
endif
endif
endif
if ValType( oMenuItem:bAction ) == "B"
if oMenuItem:bWhen != nil .and. ! Eval( oMenuItem:bWhen, oMenuItem )
return nil
endif
::oLastItem = oMenuItem
if ::lPopup
::oMenuItemPopup = oMenuItem
else
if oMenuItem:bAction != nil
if ValType( oMenuItem:bBlock ) == "B"
Eval( oMenuItem:bBlock, oMenuItem )
endif
Eval( oMenuItem:bAction, oMenuItem )
else
if ValType( oMenuItem:bBlock ) == "B"
Eval( oMenuItem:bBlock, oMenuItem )
endif
Eval( oMenuItem:OnClick, ::oWnd, oMenuItem )
endif
endif
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
endif
return nil
//----------------------------------------------------------------------------//
#include "Fivewin.ch"
Function Main()
local oWnd
local oMnu
DEFINE WINDOW oWnd ;
TITLE "Test Menu" + " - Ver.: " + FWVERSION + if( IsExe64(), ;
" ( 64", " ( 32" ) + " bits ) - " + FWString( "User" ) + ;
": " + WNetGetUser() + " - " + hb_Compiler() ;
MENU ( oMnu := MenuTest() )
ACTIVATE WINDOW oWnd MAXIMIZED
Return nil
Function MenuTest()
local oMnu
MENU oMnu 2007
MENUITEM "One"
MENU
MENUITEM "First" BLOCK { || MsgInfo( "Hello" ) }
SEPARATOR
MENUITEM "Two" ACTION MsgInfo( "Bye" )
ENDMENU
ENDMENU
Return oMnu
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 62 guests