FiveTouch tutorial

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

FiveTouch tutorial

Post by Antonio Linares »

tutor01.prg

Code: Select all

#include "FiveTouch.ch"
      
function Main()
      
   MsgInfo( "Hello world from FiveTouch" )

return nil  
Image

Image
regards, saludos

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

Re: FiveTouch tutorial

Post by Antonio Linares »

Building the main screen of your Android/iOS app:

myapp.prg

Code: Select all

#include "FiveTouch.ch"

function Main()

   local oDlg, oSay, oBtn1, oBtn2

   DEFINE DIALOG oDlg ;
      SIZE ScreenWidth(), ScreenHeight()

   @ 100, 100 SAY oSay PROMPT "My Android app" OF oDlg

   @ 200, 200 BUTTON oBtn1 PROMPT "Stock" OF oDlg SIZE 200, 200 ;
      ACTION MsgInfo( "Stock" )

   @ 450, 200 BUTTON oBtn2 PROMPT "Clients" OF oDlg SIZE 200, 200 ;
      ACTION MsgInfo( "Clients" )

   ACTIVATE DIALOG oDlg CENTERED

return nil
Image

Image
regards, saludos

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

Re: FiveTouch tutorial

Post by Antonio Linares »

Using images on the buttons of your Android/iOS app main screen:

Image

Image
regards, saludos

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

Re: FiveTouch tutorial

Post by Antonio Linares »

Code: Select all

#include "FiveTouch.ch"

function Main()

   local oDlg, oSay, oBtn1, oBtn2

   DEFINE DIALOG oDlg ;
      SIZE ScreenWidth(), ScreenHeight()

   @ 100, 100 SAY oSay PROMPT "My Android app" OF oDlg

   @ 200, 200 BUTTON oBtn1 PROMPT "Stock" OF oDlg SIZE 200, 200 ;
      ACTION MsgInfo( "Stock" )

   oBtn1:SetIcon( QIcon( QPixmap( "test.jpg" ) ) )
   oBtn1:SetIconSize( QSize( 150, 150 ) )

   @ 450, 200 BUTTON oBtn2 PROMPT "Clients" OF oDlg SIZE 200, 200 ;
      ACTION MsgInfo( "Clients" )

   ACTIVATE DIALOG oDlg CENTERED

return nil          
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Marcelo Roggeri
Posts: 275
Joined: Sat Jul 22, 2006 9:04 pm
Location: Venado Tuerto - Santa Fe -Argentina
Contact:

Re: FiveTouch tutorial

Post by Marcelo Roggeri »

Hola buenos días, quisiera probar los ejemplos en mi móvil.
Podrías enviarme una demo de FiveTouch? ... Antonio por favor
Y que pasos debo seguir
gracias de antemano
Saludos. Marcelo
FWH - Harbour - BCC7 - PellesC - FivEdit (Cristobal Navarro)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveTouch tutorial

Post by Antonio Linares »

Marcelo,

Descarga esta aplicación desde tu dispositivo Android:
https://github.com/FiveTechSoft/fivetou ... etouch.apk
Tendrás que autorizar el instalar aplicaciones desde "orígenes desconocidos"

En tu PC instala esta versión:
https://github.com/FiveTechSoft/fivetou ... indows.zip

FiveTouch incluye ejemplos. Revísalos en la carpeta samples. Ejecútalos desde FiveTouch
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Marcelo Roggeri
Posts: 275
Joined: Sat Jul 22, 2006 9:04 pm
Location: Venado Tuerto - Santa Fe -Argentina
Contact:

Re: FiveTouch tutorial

Post by Marcelo Roggeri »

Muchas gracias Antonio
FWH - Harbour - BCC7 - PellesC - FivEdit (Cristobal Navarro)
Post Reply