FiveWeb - Tutorial (paso a paso)

FiveWeb - Tutorial (paso a paso)

Postby Antonio Linares » Wed Mar 20, 2013 12:41 pm

tutor01.prg
Code: Select all  Expand view  RUN
#include "FiveWeb.ch"

function Main()

   MsgInfo( "Hello world from FiveWeb" )

return nil

Pruébalo:
http://www.fivetechsoft.net/cgi-bin/tutor01
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb - Tutorial (paso a paso)

Postby Antonio Linares » Wed Mar 20, 2013 12:43 pm

tutor02.prg
Code: Select all  Expand view  RUN
#include "FiveWeb.ch"

function Main()

   local oDlg
   
   DEFINE DIALOG oDlg TITLE "Hello FiveWeb" SIZE 600, 400
   
   ACTIVATE DIALOG oDlg

return nil

Pruébalo:
http://www.fivetechsoft.net/cgi-bin/tutor02
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb - Tutorial (paso a paso)

Postby Antonio Linares » Wed Mar 20, 2013 12:44 pm

tutor03.prg
Code: Select all  Expand view  RUN
#include "FiveWeb.ch"

function Main()

   local oDlg, lValue := .T.
   
   SET COLOR TO "#99CCFF"
   
   DEFINE DIALOG oDlg TITLE "Hello FiveWeb" SIZE 600, 400
   
   @ 120,  70 BUTTON "One" SIZE 120, 50 OF oDlg ACTION MsgInfo( "one" )

   @ 120, 220 BUTTON "Two" SIZE 120, 50 OF oDlg ACTION MsgInfo( "two" )

   @ 120, 370 BUTTON "Three" SIZE 120, 50 OF oDlg ACTION MsgInfo( "three" )
   
   @ 200, 160 CHECKBOX lValue PROMPT "Tested" SIZE 150, 40 OF oDlg
   
   ACTIVATE DIALOG oDlg

return nil

Pruébalo:
http://www.fivetechsoft.net/cgi-bin/tutor03
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb - Tutorial (paso a paso)

Postby Antonio Linares » Wed Mar 20, 2013 12:45 pm

testmenu.prg
Code: Select all  Expand view  RUN
#include "FiveWeb.ch"

function Main()

   BuildMenu()

return nil

function BuildMenu()

   local oMenu

   MENU oMenu
      MENUITEM "Your app"
      MENU
         MENUITEM "About..." ACTION MsgInfo( "My app" )
         MENUITEM "Quit"
      ENDMENU
     
      MENUITEM "Files"
      MENU
         MENUITEM "Clients"
         MENUITEM "Stock"
         MENUITEM "Agents"
      ENDMENU
     
      MENUITEM "Reports"
      MENU
         MENUITEM "Clients"
         MENU
            MENUITEM "List"
            MENUITEM "By Last name"
            MENUITEM "By State"
         ENDMENU
         
         MENUITEM "Stock"
         MENU
            MENUITEM "By id"
            MENUITEM "By amount"
            MENUITEM "My price"
         ENDMENU
      ENDMENU
     
      MENUITEM "Utilities"
     
      MENUITEM "Help"
      MENU
         MENUITEM "Wiki"
      ENDMENU
   ENDMENU

return nil

Pruébalo:
http://www.fivetechsoft.net/cgi-bin/testmenu
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb - Tutorial (paso a paso)

Postby Antonio Linares » Wed Mar 20, 2013 12:47 pm

testfold.prg
Code: Select all  Expand view  RUN
#include "FiveWeb.ch"

function Main()

   local oDlg, oFld

   DEFINE DIALOG oDlg TITLE "Using folders"

   @ 10, 10 FOLDER oFld PROMPTS "One", "Two", "Three" OF oDlg SIZE 400, 300

   ACTIVATE DIALOG oDlg

return nil

Pruébalo:
http://www.fivetechsoft.net/cgi-bin/testfold
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb - Tutorial (paso a paso)

Postby Patricio Avalos Aguirre » Wed Mar 20, 2013 2:02 pm

Hola

Excelente, me funcionan todos correctamente en mi mozilla firefox
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Re: FiveWeb - Tutorial (paso a paso)

Postby FranciscoA » Wed Mar 20, 2013 2:35 pm

Hola.
Probados en Chrome.
Saludos.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2159
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: FiveWeb - Tutorial (paso a paso)

Postby Enrrique Vertiz » Wed Mar 20, 2013 2:43 pm

Interesante, me quede en el tiempo, debo instalar primero el servidor web y copiar las aplicaciones, esto ya lo habian explicado, si tiene el link a la mano, gracias ...
Otra consulta, es la impresion, PDF o la que sea, ya hay algo de eso ??
Gracias.
Enrrique Vertiz Pitta
Lima-Peru
xHb 1.23.1026X, Fwh 24.09, BCC74, MySQL 8.0.X, SQLLIB 1.9m
Enrrique Vertiz
 
Posts: 548
Joined: Fri Oct 07, 2005 2:17 pm
Location: Lima - Peru

Re: FiveWeb - Tutorial (paso a paso)

Postby Enrrique Vertiz » Wed Mar 20, 2013 2:46 pm

Probado en Chrome, todas funcionan Ok, en IE10 todas Ok menos el ejemplo de Menu, no habre ninguna opcion
Enrrique Vertiz Pitta
Lima-Peru
xHb 1.23.1026X, Fwh 24.09, BCC74, MySQL 8.0.X, SQLLIB 1.9m
Enrrique Vertiz
 
Posts: 548
Joined: Fri Oct 07, 2005 2:17 pm
Location: Lima - Peru

Re: FiveWeb - Tutorial (paso a paso)

Postby sysctrl2 » Wed Mar 20, 2013 9:05 pm

probado en opera.com

saludos..
Cesar Cortes Cruz
SysCtrl Software
Mexico

' Sin +- FWH es mejor "
User avatar
sysctrl2
 
Posts: 1032
Joined: Mon Feb 05, 2007 7:15 pm

Re: FiveWeb - Tutorial (paso a paso)

Postby Antonio Linares » Mon Apr 22, 2013 11:19 am

Un login típico desde la web:

http://www.fivetechsoft.net/cgi-bin/login

http://code.google.com/p/fiveweb/wiki/login_prg

Image

login.prg
Code: Select all  Expand view  RUN
#include "FiveWeb.ch"

function Main()

   local oDlg, oImg
   local oGetName, cUserName := Space( 30 )
   local oGetPass, cPassword := ""

   DEFINE DIALOG oDlg TITLE "Login" SIZE 650, 400

   @  30,  30 IMAGE oImg FILENAME "../images/user.png" SIZE 120, 120 OF oDlg

   @  69, 190 SAY "User" SIZE 110, 40 OF oDlg

   @ 124, 190 SAY "Password" SIZE 110, 40 OF oDlg

   @  66, 315 GET oGetName VAR cUserName SIZE 300, 40 OF oDlg

   @ 124, 315 GET oGetPass VAR cPassword SIZE 300, 40 OF oDlg PASSWORD

   @ 265, 189 BUTTON "Ok" SIZE 110, 40 OF oDlg ;
      ACTION MsgInfo( oGetName.value + CRLF + oGetPass.value ); // executed in the client in javascript

   @ 265, 335 BUTTON "Cancel" SIZE 110, 40 OF oDlg ;
      ACTION ( oDlg:End() ) // Executed in the server in advance

   ACTIVATE DIALOG oDlg

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb - Tutorial (paso a paso)

Postby Sistem » Mon Apr 22, 2013 12:19 pm

tener un paso a paso TortoiseSVN?

Paramos aquí
Image
FWH2008 | xHarbour | BCC74 | SQLRDD
User avatar
Sistem
 
Posts: 226
Joined: Sun May 13, 2012 7:52 am

Re: FiveWeb - Tutorial (paso a paso)

Postby Antonio Linares » Mon Apr 22, 2013 2:45 pm

No hay que especificar ningun username ni password y darle a ok y ya está :-)

Luego ir a la carpeta de FiveWeb y ejecutar go.bat
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb - Tutorial (paso a paso)

Postby Antonio Linares » Tue Apr 30, 2013 5:53 am

Toolbars:

http://www.fivetechsoft.net/cgi-bin/testtool

Image

testfold.prg
Code: Select all  Expand view  RUN
#include "FiveWeb.ch"

function Main()

   local oDlg, oTbr, oBtn1, oBtn2

   DEFINE DIALOG oDlg TITLE "Using toolbars"

   DEFINE TOOLBAR oTbr OF oDlg

   DEFINE BUTTON RESOURCE "ui-icon-seek-start" ;
      OF oTbr ACTION MsgInfo( "one" )

   DEFINE BUTTON RESOURCE "ui-icon-seek-prev" ;
      OF oTbr ACTION MsgInfo( "two" )

   DEFINE BUTTON RESOURCE "ui-icon-play" ;
      OF oTbr ACTION MsgInfo( "three" )

   DEFINE BUTTON RESOURCE "ui-icon-pause" ;
      OF oTbr ACTION MsgInfo( "four" )

   DEFINE BUTTON RESOURCE "ui-icon-seek-next" ;
      OF oTbr ACTION MsgInfo( "five" )

   DEFINE BUTTON RESOURCE "ui-icon-seek-end" ;
      OF oTbr ACTION MsgInfo( "six" )

   ACTIVATE DIALOG oDlg NOWAIT

return nil


standard jquery ui images:
http://jquery-ui.googlecode.com/svn/tags/1.6rc5/tests/static/icons.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 52 guests