by mjcc » Sun Apr 23, 2006 9:37 am
FICHERO .PRG
#include "FWCE.ch"
function Main()
local oWnd, oBmp
DbCloseAll()
Config()
MsgInfo(SerialNumber())
DEFINE BITMAP oBmp FILE CurDir() + "\bmp\inicio.bmp"
DEFINE WINDOW oWnd TITLE "MJCC" MENU menu_systema()
ACTIVATE WINDOW oWnd ;
ON PAINT oWnd:SayBitmap(0, 0, oBmp ) ;
ON CLICK MsgInfo("MJCC" + CHR(13) + "Bembibre" + chr(13) +;
"La Coruña"+ chr(13)+;
"Telefono 902234568", "Gestión")
DbCloseAll()
oBmp:End()
return 0
******************************************************
* Define el menu de acceso al sistema
******************************************************
FUNCTION menu_systema()
LOCAL omenu
DEFINE MENU oMenu RESOURCE 102
REDEFINE MENUITEM ID 100 OF oMenu ACTION MsgInfo( "First" )
REDEFINE MENUITEM ID 200 OF oMenu ACTION MsgInfo( "Second" )
RETURN omenu
******************************************************
* Configuracion del sistema por defecto para arrancar *
******************************************************
STATIC FUNCTION Config()
HB_LANGSELECT("ESWIN")
SET DELETED ON
SET DATE TO ITALIAN
SET SOFTSEEK ON
SET CENTURY ON
SET EPOCH TO 2000
Hb_LangSelect ('PL')
Hb_SetCodePage ('PLWIN')
RETURN 0
FICHERO RC
/****************************************************************************
clases.rc
produced by Borland Resource Workshop
*****************************************************************************/
#define MENU_2 2
#define CM_POPUPITEM5 106
#define CM_POPUPITEM4 105
#define CM_POPUPITEM3 104
#define CM_POPUPITEM2 103
#define CM_POPUPITEM1 102
#define CM_POPUPITE1 101
#define CM_MAESTROSITEM2 104
#define CM_MAESTROSITEM1 103
#define CM_MAESTROSITEM 102
#define DIALOG_1 1
DIALOG_1 DIALOG 9, 24, 172, 139
STYLE DS_ABSALIGN | WS_CHILD | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Inicio del sistema"
FONT 8, "MS Sans Serif"
{
}
102 MENU
{
MENUITEM "Hola 1", 100
MENUITEM "Hola 2", 200
}
GRACIAS. PUEDES SOLUCIONARME EL PROBLEMA
NO SE POR DONDE REALIZARLO, ES LA PRIMERA VEZ QUE HAGO UN MENU.