FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FiveWeb - tutorial (step by step)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
FiveWeb - tutorial (step by step)
Posted: Wed Mar 20, 2013 12:28 PM
tutor01.prg
Code (fw): Select all Collapse
#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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb - tutorial (step by step)
Posted: Wed Mar 20, 2013 12:31 PM
tutor02.prg
Code (fw): Select all Collapse
#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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb - tutorial (step by step)
Posted: Wed Mar 20, 2013 12:34 PM
tutor03.prg
Code (fw): Select all Collapse
#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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb - tutorial (step by step)
Posted: Wed Mar 20, 2013 12:39 PM
testmenu.prg
Code (fw): Select all Collapse
#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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb - tutorial (step by step)
Posted: Wed Mar 20, 2013 12:48 PM
testfold.prg
Code (fw): Select all Collapse
#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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FiveWeb - tutorial (step by step)
Posted: Thu Mar 21, 2013 08: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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb - tutorial (step by step)
Posted: Thu Mar 21, 2013 09:37 AM

Otto,

Thanks for your feedback :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: FiveWeb - tutorial (step by step)
Posted: 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
Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: FiveWeb - tutorial (step by step)
Posted: 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.

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: FiveWeb - tutorial (step by step)
Posted: 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 March-April 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb - tutorial (step by step)
Posted: 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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: FiveWeb - tutorial (step by step)
Posted: Thu Mar 21, 2013 06: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 March-April 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb - tutorial (step by step)
Posted: Thu Mar 21, 2013 07: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: FiveWeb - tutorial (step by step)
Posted: Tue Mar 26, 2013 07: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 March-April 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb - tutorial (step by step)
Posted: Tue Mar 26, 2013 11:37 AM

Silvio,

Use wamp or xampp, on Windows.

regards, saludos

Antonio Linares
www.fivetechsoft.com