by landaga » Tue Sep 23, 2008 5:08 pm
Este es el código, gracias:
#include 'winrom.inc' //Contiene los .ch necesarios
Static oWnd
STATIC oIco
Static MainWnd
//----------------------------------------------------------------------------//
Function MAIN()
Local oBar
LOCAL oCursorMano
LOCAL oBru
SetHandleCount(225)
SET DATE TO ITALIAN
SET RESOURCES TO 'GeroGest.DLL'
REQUEST HB_Lang_ES
HB_LANGSELECT ('ES')
DEFINE ICON oIco RESOURCE "PEOPLE"
DEFINE BRUSH oBru STYLE BORLAND
DEFINE WINDOW oWnd FROM 2, 10 TO 45, 115 ;
TITLE "GeroGest v.8.09" ;
COLOR 0;
MENU Menu() ;
BRUSH oBru ;
ICON oIco
DEFINE BUTTONBAR oBar 3D SIZE 35, 35 OF oWnd 2007
DEFINE BUTTON OF oBar RESOURCE "exit" ;
ACTION oWnd:End() ;
TOOLTIP 'Salir'
SET MESSAGE OF oWnd TO "Creado por Pedro Landa - (c) 00/2007/4915" ;
CENTERED CLOCK DATE KEYBOARD
ACTIVATE WINDOW oWnd MAXIMIZED on INIT Hija()
Return Nil
//..........................
Function Menu()
Local oMenu
MENU oMenu 2007
MENUITEM "&Residentes" ;
MESSAGE (O2A('Gestion de Residentes y Facturacion'))
MENU
MENUITEM (O2A("&Consulta de Residentes"))
MENU
MENUITEM (O2A("Actualizacion Residentes")) ;
ACTION Altas()
MENUITEM "Consultar Bajas" ;
ACTION Bajas()
ENDMENU
ENDMENU
ENDMENU
Set Echo Off
Set Talk Off
Return oMenu
//..........................
Function Hija()
Local oWndCh, oBruCh, oIcoCh, oBarCh
DEFINE ICON oIcoCh RESOURCE "CARPETAS"
DEFINE BRUSH oBruCh STYLE BRICKS
DEFINE WINDOW oWndCh OF oWnd ;
TITLE O2A('AlmaGest(c) v.8.9') FROM 10,10 TO 35,115 ;
MENU Menu1() ;
BRUSH oBruCh ;
ICON oIcoCh BORDER NONE NOICONIZE NOMAXIMIZE NOSYSMENU
DEFINE BUTTONBAR oBarCh 3D SIZE 40, 40 OF oWndCh 2007
DEFINE BUTTON OF oBarCh RESOURCE "exit" ;
ACTION oWnd:End() ;
TOOLTIP 'Salir'
ACTIVATE WINDOW oWndCh
RETURN NIL
//...........................
Function Menu1()
Local oMenu2
MENU oMenu2 2007
MENUITEM (O2A('Albaranes de Salida')) ;
MESSAGE (O2A('Alta Albaranes y Modificacio¢n de Lineas'))
MENU
MENUITEM 'Altas y Modificaciones';
ACTION Lineas()
MENUITEM 'Detalle de Albaranes con Importe' ;
ACTION ALBARAN()
Separator
MENUITEM "&Salir" ;
ACTION If( MsgYesNo( "Desea realmente salir ?","Abandonar AlmaGest"),;
oWnd:End(),) // Editado: antes ponia oWndCh:End()
ENDMENU
ENDMENU
Return oMenu2
Last edited by
landaga on Wed Sep 24, 2008 3:49 pm, edited 2 times in total.