FiveTouch tutorial

FiveTouch tutorial

Postby Antonio Linares » Sat Apr 15, 2017 7:09 am

tutor01.prg
Code: Select all  Expand view
#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: 35144
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTouch tutorial

Postby Antonio Linares » Sat Apr 15, 2017 7:35 pm

Building the main screen of your Android/iOS app:

myapp.prg
Code: Select all  Expand view
#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: 35144
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTouch tutorial

Postby Antonio Linares » Mon Apr 17, 2017 7:47 am

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: 35144
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveTouch tutorial

Postby Antonio Linares » Tue Oct 17, 2017 7:47 am

Code: Select all  Expand view
#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
Antonio Linares
Site Admin
 
Posts: 35144
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveTouch

Who is online

Users browsing this forum: No registered users and 1 guest