... en caso de usar Redefine(), resultando un error en tiempo de ejecución. Solucionado. * Mejora: La claúsula MENUITEM ... WHEN ahora recibe oMenuItem (Self) como parámetro. * Mejora: En el ejemplo, samples\fivedbu.prg ahora muestra como seleccionada la etiqueta de índice actual de el botón ...
... Fix: DATA lFlat is not initialized in case of Redefine() resulting in runtime error. Fixed. * Enhancement: MENUITEM ... WHEN clause now receives oMenuItem (Self) as the parameter. * Enhancement: samples\fivedbu.prg now shows as selected the current index tag from the button "index" ...
... nil, !( XbrNumFormat()[ 2 ] ) ), ; oMenuItem:SetCheck( XBrNumFormat()[ 2 ] ) ) Lo primero, no entiendo como fivewin sabe que existe el objeto oMenuItem, ...
... (cTipnom:="Q",rep_incqui()) resource "nomina_quincena" endmenureturn oPopuprn Quisiera obtener el valor de oMenuitem:cPrompt, solo cuando se pulse el botón derecho del mouse, en caso contrario que ejecute su clausula "ACTION" de forma normal.
... oSubMenu:l2007 = oMenu:l2007 // new oSubMenu:l2010 = oMenu:l2010 // new oSubMenu:hMenu = hSubMenu oSubMenu:lSysMenu = .f. oSubMenu:aMenuItems = {} oMenuItem:bAction = oSubMenu ResBuild( oSubMenu ) endif ... With those changes it does not fail. I am including this change for next FWH build, thanks :-)
Cristobal, Enrico, look the .ppo oMen := MenuBegin( .F.,,, .F., .F. ) MenuAddItem( "Test",, .F.,, {|oMenuItem|MSGINFO( "OK" )},,,,,,, .F.,,, .F. ) MenuEnd() If you are suggesting to change tons of lines of code, well, ...
Antonio, But it is not a proper solution, because that oMenuItem is not this one: #xcommand MENUITEM [ <oMenuItem> PROMPT ] [<cPrompt>] because it could be used from the codeblock, but not defined there. In other words, the codeblock parameter ...
Antonio, Enrico, If I properly understand you, what you want should get solved this way: [\{| [ <oMenuItem> ] | <uAction>\}],; If with this change is working right, then we modify FiveWin.ch and problem solved :-) Please note that this is only one of many warnings ...
But it is not a proper solution, because that oMenuItem is not this one: #xcommand MENUITEM [ <oMenuItem> PROMPT ] [<cPrompt>] because it could be used from the codeblock, but not defined there. In other words, the codeblock parameter ...