Object Oriented Harbour GUI
30 Aug
lConnected:= .F.
/********** Cadena de Conexion **********/
aRows := {}
FOR i := 1 TO nFlds
ENDIF
For f := 1 to LEN(aRows)
For n := 1 to LEN(aFlds[1])
DEFINE WINDOW oWnd WIDTH 640 HEIGHT 480 ;
DEFINE TOOLBAR ToolBar_1 BUTTONSIZE 90,32 ;
BUTTON Cerrar CAPTION "Close" ;
BUTTON Nuevo CAPTION "New" ;
BUTTON Modificar CAPTION "Edit" ;
BUTTON Eliminar CAPTION "Delete" ;
BUTTON Buscar CAPTION "Find" ;
BUTTON Imprimir CAPTION "Print" ;
END TOOLBAR
@ 60, 10 GRID Grid_1 ;
END WINDOW
CENTER WINDOW oWnd
DO CASE
For n := 1 to LEN(aNew[1])
Descarga el programa y recursos aqui
28 Jul
Use mibase
IF valtype(aInfo)=‘A’
For n := 1 to LEN(aInfo[1])
aFlds := {}
DEFINE WINDOW oWnd WIDTH 640 HEIGHT 420 ;
@ 20, 20 LABEL Boton1 VALUE "Rows : "+str(LEN(aInfo))
@ 60, 10 GRID Grid_1 ;
END WINDOW
CENTER WINDOW oWnd
Endif RETURN( Nil ) *———————————————————————*
15 Jul
DEFINE WINDOW Main OBJ oWnd WIDTH 520 HEIGHT 300
DEFINE MAIN MENU
@ 10 , 10 BUTTON Boton1 CAPTION "GetWindowRect" ;
@ 50 , 10 BUTTON Boton5 CAPTION "GetWindowRow" ;
@ 50 ,250 BUTTON Boton7 CAPTION "GetWindowHeight" ;
@ 90 , 10 BUTTON Boton9 CAPTION "GetDeskTopHeight" ;
@ 130, 10 BUTTON Boton11 CAPTION "GetTitleHeight" ;
@ 170, 10 BUTTON Boton13 CAPTION "Get3DEdgeHeight" ;
END WINDOW
CENTER WINDOW Main
26 Jun
DEFINE BUTTON Button_1
END WINDOW
ACTIVATE WINDOW Ventana Return Nil *————————————–
SetMode(25,80)
CLS
@ 10,10 say ‘Hello’
alert(‘Hello’) Return nil
17 Jun
31 May
Define Window form_1 at 0,0 width 320 height 600 ;
@ 10,80 BUTTON BUTTON_1 ;
@ 110,80 BUTTON BUTTON_2 ;
@ 210,80 BUTTON BUTTON_3 ;
@ 310,80 BUTTON BUTTON_4 ;
@ 400,80 button button_5 ;
@ 450,80 Button button_6 ;
End window
Center window form_1
If npar=1
31 May
MsgInfo("Se ajusta posicion, ancho y font","Informacion")
DEFINE WINDOW Principal AT 126,66 WIDTH 648 HEIGHT 404 ;
@ 320,400 BUTTON button_1 CAPTION ‘Aceptar’ ;
principal.button_1.fontcolor:={0,0,0}
@ 320,507 BUTTON button_2 CAPTION ‘Cancelar’ ;
principal.button_2.fontcolor:={0,0,0}
@ 18,31 FRAME frame_1 CAPTION "Datos Generales" ;
principal.frame_1.fontcolor:={0,0,0}
@ 322,35 LABEL label_1 WIDTH 95 HEIGHT 21 ;
principal.label_1.fontcolor:={0,0,0}
@ 321,150 TEXTBOX text_1 HEIGHT 24 WIDTH 219 ;
principal.text_1.fontcolor:={0,0,0}
@ 40,491 IMAGE image_1 PICTURE "hbprint_save" ;
@ 86,309 DATEPICKER datepicker_1 WIDTH 120 ;
principal.datepicker_1.fontcolor:={0,0,0}
DEFINE TAB tab_1 AT 40,40 WIDTH 250 HEIGHT 250 ;
DEFINE PAGE ‘Page 1′ IMAGE ”
@ 48,24 GRID grid_1 WIDTH 200 HEIGHT 158 ;
principal.grid_1.fontcolor:={0,0,0}
END PAGE
DEFINE PAGE ‘Page 2′ IMAGE ”
@ 121,29 PROGRESSBAR progressbar_1 ;
principal.progressbar_1.fontcolor:={0,0,0}
END PAGE
@ 128,308 LISTBOX list_1 WIDTH 158 HEIGHT 99 ;
principal.list_1.fontcolor:={0,0,0}
@ 244,313 COMBOBOX combo_1 WIDTH 100 VALUE 3;
principal.combo_1.fontcolor:={0,0,0}
@ 243,488 BUTTON picbutt_3 PICTURE ‘hbprint_close’;
END WINDOW
Activate Window principal Return Nil
29 May
oWnd := TformMain():Define()
oWnd:Activate() Return(Nil)
29 May
DEFINE WINDOW Win_1 ;
ACTIVATE WINDOW Win_1 Return