FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posts: 582
Joined: Fri Oct 07, 2005 02:17 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Wed Nov 07, 2012 04:19 PM

Antonio, compilo y funciona Ok, algunos comentarios :

Para los que usan WAMP, los archivos EXE se deben colocar en la carpeta CGI-BIN que esta dentro del directorio Wamp\Bin\apache......cgi-bin.

En Windows 7 y Harbour los compilo sin problemas y los ejecuto.

Cuando compilo en WinXP con Harbour o en Win7 con xHarbour me bota el siguiente error al enlazar :

Error : Unresolved external '_HB_FUN_HB_GT_STD_DEFAULT' referenced from Fiveweb\Lib\FIVEWEB.LIB|fiveweb
Error : Unresolved external '_HB_FUN_HB_GT_STD' referenced from Fiveweb\Lib\FIVEWEB.LIB|fiveweb

Falta alguna LIB, alguna ruta ??, gracias

Enrrique Vertiz Pitta

Lima-Peru

xHb 1.23.1026X, Fwh 25.01, BCC74, MySQL 8.0.X, SQLLIB 1.9m
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Wed Nov 07, 2012 09:38 PM

Enrique,

Estas usando FiveWeb/samples/build,bat para construir los ejemplos ?

La libreria gtstd.lib hay que enlazarla, pero ya lo hace build.bat

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 582
Joined: Fri Oct 07, 2005 02:17 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Wed Nov 07, 2012 10:12 PM

Gracias Antonio, por alguna razon no lo tenia en el Build.bat, incluyendo esa LIB compilo sin problema con HARBOUR, ya esta Ok

Ahora con xHarbour, uso el Build.bat lo copio como Buildx.bat y saco las LIBs de HARBOUR y traigo las que estan en el FWH\Samples en el Buildx.bat, al parecer me falta algo porque me bota un error :
Unresolved external _HB_FUN__CLSLOCKDEF
Unresolved external _HB_FUN__CLSUNLOCKDEF
Falta alguna LIB en xHb ?, gracias

Enrrique Vertiz Pitta

Lima-Peru

xHb 1.23.1026X, Fwh 25.01, BCC74, MySQL 8.0.X, SQLLIB 1.9m
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Thu Nov 08, 2012 12:22 AM
Browses basados en MySQL, usando Ajax:

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

Fijaros en la cla煤sula URL del browse que carga mediante Ajax el contenido a partir de donde queramos. En este caso desde un php estandard de FiveWeb que accede a una tabla de una base de datos de MySQL.

testbrow.prg
Code (fw): Select all Collapse
#include "FiveWeb.ch"

function Main()

聽 聽local oDlg, oBrw

聽 聽DEFINE DIALOG oDlg TITLE "MySQL browse" ;
聽 聽 聽 SIZE 1000, 600

聽 聽@ 10, 10 BROWSE oBrw SIZE 980, 500 OF oDlg ;
聽 聽 聽 URL "../fiveweb/mybrowse.php?name=clients"

聽 聽@ 500, 30 BUTTON "<<" OF oDlg SIZE 50, 35

聽 聽@ 500, 110 BUTTON ">>" OF oDlg SIZE 50, 35

聽 聽@ 500, 200 BUTTON "Add" OF oDlg

聽 聽@ 500, 330 BUTTON "Edit" OF oDlg

聽 聽@ 500, 460 BUTTON "Delete" OF oDlg

聽 聽@ 500, 590 BUTTON "Search" OF oDlg

聽 聽@ 500, 720 BUTTON "Print" OF oDlg

聽 聽@ 500, 850 BUTTON "Exit" OF oDlg

聽 聽ACTIVATE DIALOG oDlg

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Thu Nov 08, 2012 08:28 AM

Enrique,

Esos unresolved external siempre me han salido a mi cuando desde el ambiente (sets) de harbour he invocado una compilacion de xHarbour (o viceversa, ya no me acuerdo). Es decir, la solucion, al menos para mi, siempre pasa por abrir una sesion nueva de CMD.

Saludos

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Thu Nov 08, 2012 09:00 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 582
Joined: Fri Oct 07, 2005 02:17 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Thu Nov 08, 2012 02:04 PM

hmpaquito, gracias por el tip, probare con lo indicado.

Enrrique Vertiz Pitta

Lima-Peru

xHb 1.23.1026X, Fwh 25.01, BCC74, MySQL 8.0.X, SQLLIB 1.9m
Posts: 1144
Joined: Mon Feb 05, 2007 07:15 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Thu Nov 08, 2012 06:03 PM

la solucion que pone paco,
es la correcta,
abrir una nueva ventana de COMMAND.COM ( CMD )

saludos.

Cesar Cortes Cruz

SysCtrl Software

Mexico



' Sin +- FWH es mejor "
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Fri Nov 09, 2012 04:09 PM
Implementada la cla煤sula ACTION en los botones. De momento ejecutan acciones en la parte cliente, m谩s adelante implementaremos las acciones en la aprte servidor tambien. Implementada la funci贸n MsgInfo() en javascript usando jquery ui y DOM.

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

tutor03.prg
Code (fw): Select all Collapse
// Using controls

#include "FiveWeb.ch"

function Main()

聽 聽local oDlg, lValue := .T.
聽 聽
聽 聽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


regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Sat Nov 10, 2012 11:18 AM
Implementados los menues de persiana:

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

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


regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Sat Nov 10, 2012 11:37 AM
tutor01 compilado y funcionando en macosx (servidor apache integrado en el sistema ) :-)
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Sun Nov 11, 2012 01:48 PM

A帽adidos al repositorio los archivos mac_build.sh makefilemac para compilar fiveweb en mac ... :-)
Saludos a Todos.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Sun Nov 11, 2012 03:35 PM

Manuel.

gracias! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Sun Nov 11, 2012 03:35 PM
Dinamicamente cambiando temas:

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

themes.prg
Code (fw): Select all Collapse
#include "FiveWeb.ch"

function Main()

聽 聽local oDlg, oFld

聽 聽BuildMenu()

聽 聽DEFINE DIALOG oDlg SIZE 600, 400

聽 聽@ 10, 10 FOLDER oFld PROMPTS "One", "Two", "Three" OF oDlg ;
聽 聽 聽 SIZE 520, 230

聽 聽@ 260, 150 BUTTON "Ok" OF oDlg ACTION MsgInfo( "ok" )

聽 聽@ 260, 300 BUTTON "Cancel" OF oDlg ACTION MsgInfo( "cancel" )

聽 聽ACTIVATE DIALOG oDlg NOWAIT 聽

return nil

function BuildMenu()

聽 聽local oMenu

聽 聽MENU oMenu
聽 聽 聽 MENUITEM "Main theme"
聽 聽 聽 MENU
聽 聽 聽 聽 聽MENUITEM "Light"
聽 聽 聽 聽 聽MENU 
聽 聽 聽 聽 聽 聽 MENUITEM "Base" 聽 聽 聽 聽 ACTION SetTheme( "base" )
聽 聽 聽 聽 聽 聽 MENUITEM "Black-tie" 聽 聽ACTION SetTheme( "black-tie" )
聽 聽 聽 聽 聽 聽 MENUITEM "Blitzer" 聽 聽 聽ACTION SetTheme( "blitzer" )
聽 聽 聽 聽 聽 聽 MENUITEM "Cupertino" 聽 聽ACTION SetTheme( "cupertino" )
聽 聽 聽 聽 聽 聽 MENUITEM "excite-bike" 聽ACTION SetTheme( "excite-bike" )
聽 聽 聽 聽 聽 聽 MENUITEM "flick" 聽 聽 聽 聽ACTION SetTheme( "flick" )
聽 聽 聽 聽 聽 聽 MENUITEM "hot-sneacks" 聽ACTION SetTheme( "hot-sneaks" )
聽 聽 聽 聽 聽 聽 MENUITEM "humanity" 聽 聽 ACTION SetTheme( "humanity" )
聽 聽 聽 聽 聽 聽 MENUITEM "overcast" 聽 聽 ACTION SetTheme( "overcast" )
聽 聽 聽 聽 聽 聽 MENUITEM "pepper-grinder" ACTION SetTheme( "pepper-grinder" )
聽 聽 聽 聽 聽 聽 MENUITEM "redmond" 聽 聽 聽ACTION SetTheme( "redmond" )
聽 聽 聽 聽 聽 聽 MENUITEM "smoothness" 聽 ACTION SetTheme( "smoothness" )
聽 聽 聽 聽 聽 聽 MENUITEM "south-street" ACTION SetTheme( "south-street" )
聽 聽 聽 聽 聽 聽 MENUITEM "start" 聽 聽 聽 聽ACTION SetTheme( "start" )
聽 聽 聽 聽 聽 聽 MENUITEM "sunny" 聽 聽 聽 聽ACTION SetTheme( "sunny" )
聽 聽 聽 聽 聽 聽 MENUITEM "ui-lightness" ACTION SetTheme( "ui-lightness" )
聽 聽 聽 聽 聽ENDMENU
聽 聽 聽 聽 聽
聽 聽 聽 聽 聽MENUITEM "Dark"
聽 聽 聽 聽 聽MENU 
聽 聽 聽 聽 聽 聽 MENUITEM "Dot-lub" 聽 聽 聽ACTION SetTheme( "dot-luv" )
聽 聽 聽 聽 聽 聽 MENUITEM "Dark-hive" 聽 聽ACTION SetTheme( "dark-hive" )
聽 聽 聽 聽 聽 聽 MENUITEM "Eggplant" 聽 聽 ACTION SetTheme( "eggplant" )
聽 聽 聽 聽 聽 聽 MENUITEM "le-frog" 聽 聽 聽ACTION SetTheme( "le-frog" )
聽 聽 聽 聽 聽 聽 MENUITEM "mint-choc" 聽 聽ACTION SetTheme( "mint-choc" )
聽 聽 聽 聽 聽 聽 MENUITEM "swanky-purse" ACTION SetTheme( "swanky-purse" )
聽 聽 聽 聽 聽 聽 MENUITEM "trontastic" 聽 ACTION SetTheme( "trontastic" )
聽 聽 聽 聽 聽 聽 MENUITEM "ui-darkness" 聽ACTION SetTheme( "ui-darkness" )
聽 聽 聽 聽 聽 聽 MENUITEM "vader" 聽 聽 聽 聽ACTION SetTheme( "vader" )
聽 聽 聽 聽 聽ENDMENU
聽 聽 聽 ENDMENU 聽
聽 聽ENDMENU

return oMenu


regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb de FiveTech (gratis hasta la versi贸n 1.0)
Posted: Sun Nov 11, 2012 11:13 PM
Comenzando un dise帽ador. Existe el problema de que cuando un control se activa como redimensionable y movible, los demas pierden esa capacidad. Si solucionamos esto, vamos por buen camino :-)

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

Code (fw): Select all Collapse
#include "FiveWeb.ch"

function Main()

   local oDlg

   BuildMenu()

   DEFINE DIALOG oDlg SIZE 600, 400

   ACTIVATE DIALOG oDlg NOWAIT  

return nil

function BuildMenu()

   local oMenu

   MENU oMenu
      MENUITEM "Controls"
      MENU
         MENUITEM "Add control"
         MENU 
            MENUITEM "Say"    ACTION AddSay( "oDlg" )
            MENUITEM "Button" ACTION AddButton( "oDlg" )
         ENDMENU
      ENDMENU  
   ENDMENU

return oMenu
regards, saludos

Antonio Linares
www.fivetechsoft.com