FiveWeb - tutorial (step by step)

FiveWeb - tutorial (step by step)

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

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

function Main()

   MsgInfo( "Hello world from FiveWeb" )

return nil

Running on the web:
http://www.fivetechsoft.net/cgi-bin/tutor01
regards, saludos

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

Re: FiveWeb - tutorial (step by step)

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

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

function Main()

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

return nil

Test it:
http://www.fivetechsoft.net/cgi-bin/tutor02
regards, saludos

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

Re: FiveWeb - tutorial (step by step)

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

tutor03.prg
Code: Select all  Expand view
#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

Test it:
http://www.fivetechsoft.net/cgi-bin/tutor03
regards, saludos

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

Re: FiveWeb - tutorial (step by step)

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

testmenu.prg
Code: Select all  Expand view
#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

Test it:
http://www.fivetechsoft.net/cgi-bin/testmenu
regards, saludos

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

Re: FiveWeb - tutorial (step by step)

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

testfold.prg
Code: Select all  Expand view
#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

Test it:
http://www.fivetechsoft.net/cgi-bin/testfold
regards, saludos

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

Re: FiveWeb - tutorial (step by step)

Postby Otto » Thu Mar 21, 2013 8:19 am

Dear Antonio,
I ran all the test programs with the new Internet Explorer and IE 9.
The design is beautiful. There is one problem with menu example. Here I do not see the submenus.
With firefox it is working.
Thanks for your work and best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6008
Joined: Fri Oct 07, 2005 7:07 pm

Re: FiveWeb - tutorial (step by step)

Postby Antonio Linares » Thu Mar 21, 2013 9:37 am

Otto,

Thanks for your feedback :-)
regards, saludos

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

Re: FiveWeb - tutorial (step by step)

Postby ADutheil » Thu Mar 21, 2013 11:30 am

Could not have the samples working with IE10 for Windows 7 (64bits). With Chrome everything works OK.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: FiveWeb - tutorial (step by step)

Postby Massimo Linossi » Thu Mar 21, 2013 11:43 am

Hi Antonio.
On Safari, in OSX 10.8.3, works perfectly. Also on iPad with the last update.
Many compliments.
User avatar
Massimo Linossi
 
Posts: 495
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: FiveWeb - tutorial (step by step)

Postby Silvio.Falconi » Thu Mar 21, 2013 12:25 pm

Dear Antonio,
also I tried from Tablet and run ok

a question please ...if we create an app on Fiveweb the Archives are as "Dbf" format ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6774
Joined: Thu Oct 18, 2012 7:17 pm

Re: FiveWeb - tutorial (step by step)

Postby Antonio Linares » Thu Mar 21, 2013 12:38 pm

Silvio,

You can use DBFs, MySQL, etc. whatever you may want or need :-)
regards, saludos

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

Re: FiveWeb - tutorial (step by step)

Postby Silvio.Falconi » Thu Mar 21, 2013 6:28 pm

I ask it because I not remember on Server there is the possibility to run dbf because in past had had a shop application with asp and I used Mdb archives
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6774
Joined: Thu Oct 18, 2012 7:17 pm

Re: FiveWeb - tutorial (step by step)

Postby Antonio Linares » Thu Mar 21, 2013 7:05 pm

On the server you are running a Harbour (+ FIveWeb) app and of course you can manage DBFs etc, as it is a Harbour app :-)
regards, saludos

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

Re: FiveWeb - tutorial (step by step)

Postby Silvio.Falconi » Tue Mar 26, 2013 7:52 am

But If I wish try it on Local ( on a Pc or a Portable Pc) How I can make ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6774
Joined: Thu Oct 18, 2012 7:17 pm

Re: FiveWeb - tutorial (step by step)

Postby Antonio Linares » Tue Mar 26, 2013 11:37 am

Silvio,

Use wamp or xampp, on Windows.
regards, saludos

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

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 104 guests