Antonio,
Podeis mirar porque no se ejecutan las acciones en un menu creado desde un dialogo ?
Fichero *.rc
Gracias
Podeis mirar porque no se ejecutan las acciones en un menu creado desde un dialogo ?
#include "FWCE.ch"
//----------------------------------------------------------------------------
function Main()
local oWnd
DEFINE DIALOG oWnd FROM 0,0 TO 5, 25 TITLE 'Menu en Dialog'
ACTIVATE DIALOG oWnd CENTERED ;
ON INIT oWnd:SetMenu( BuildMenu() )
return nil
//----------------------------------------------------------------------------
function BuildMenu()
local oMenu
DEFINE MENU oMenu RESOURCE 102
REDEFINE MENUITEM ID 110 OF oMenu ACTION MsgInfo( "First" )
REDEFINE MENUITEM ID 120 OF oMenu ACTION MsgInfo( "Second" )
return oMenu
//----------------------------------------------------------------------------Fichero *.rc
#ifdef _CE
#include "c:\vce\include\arm\windows.h"
#include "c:\vce\include\arm\commctrl.h"
#endif
#define I_IMAGENONE (-2)
#define IDS_HELP 104
#ifdef _CE
102 RCDATA
BEGIN
102, 2,
I_IMAGENONE, 110, TBSTATE_ENABLED, TBSTYLE_AUTOSIZE, 202, 0, 0,
I_IMAGENONE, 120, TBSTATE_ENABLED, TBSTYLE_AUTOSIZE, 203, 0, 0,
END
#endif
STRINGTABLE DISCARDABLE
BEGIN
202 "First"
203 "Second"
END
102 MENU DISCARDABLE
BEGIN
MENUITEM "", 110
MENUITEM "", 120
ENDGracias
Salutacions, saludos, regards
"...programar es f谩cil, hacer programas es dif铆cil..."
UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
"...programar es f谩cil, hacer programas es dif铆cil..."
UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix