Lo que pasa es que tengo varias columnas definidas en un xbrowse. Y necesito que al hacer clic derecho me muestre un menu popup. Actualmente lo estoy haciendo de la siguiente manera:
聽 oBrwDofa:bRClicked 聽 聽 聽 聽 聽 := { | nRow, nCol | ShowPopup( nRow, nCol , oBrwDofa }y el menu
***********************************
*MENU POP-UP CON TODAS LAS OPCIONES
***********************************
function ShowPopup( nRow, nCol, oBrw )
local oPopup, oFont
MENU oPopup POPUP 2007
聽 MENUITEM "Agregar Lote" RESOURCE "#8073" ACTION oLamcla:autoriza(72)
聽 MENUITEM "Modificar Lote" RESOURCE "#8082" ACTION oLamcla:autoriza(73)
聽 MENUITEM "Borrar Lote" RESOURCE "#8074" ACTION oLamcla:autoriza(74)
聽 SEPARATOR
聽 MENUITEM "Fotografia Lote" RESOURCE "#8081" ACTION oLamcla:autoriza(76)
聽 if alltrim(oRsDocfac:Fields( "estdcpt" ):Value)="L"
聽 聽 MENUITEM "Vender Lote" RESOURCE "#8084" ACTION oLamcla:autoriza(79)
聽 else
聽 聽 MENUITEM "Vender Lote" DISABLED RESOURCE "#8084"
聽 endif
聽 MENUITEM "Consulta Pagos" ACTION oLamcla:autoriza(77)
聽 MENUITEM "Linderos Lote" RESOURCE "#8098" ACTION oLamcla:autoriza(105)
聽 SEPARATOR
聽 if alltrim(oRsDocfac:Fields( "estdcpt" ):Value)="G"
聽 聽 MENUITEM "Gestion Acuerdos de Pago" RESOURCE "#8097" ACTION oLamcla:autoriza(87)
聽 else
聽 聽 MENUITEM "Gestion Acuerdos de Pago" RESOURCE "#8097" DISABLED
聽 endif
聽 SEPARATOR
聽 MENUITEM "Contrato C-Vta Entregado" RESOURCE "#8084" ACTION oLamcla:autoriza(108)
聽 SEPARATOR
聽 MENUITEM "Cerrar Ventana" RESOURCE "#8076" ACTION oWHiCt:End()
ENDMENU
ACTIVATE POPUP oPopup OF oBrw AT nRow, nCol
return nilHasta ah铆 todo bien ahora el tema se complica, por que necesito saber sobre que columna se hace el clic. Dependiendo de la columna se deben mostrar opciones diferentes.
Alguien sabe como hacer esto?.
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com
[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]