Programming Without Coding Technology (PWCT) - Create your first application

download Programming Without Coding Technology (PWCT) - Create your first application

of 17

Transcript of Programming Without Coding Technology (PWCT) - Create your first application

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    1/17

    PWCT 1.9 Art Documentation ( http://doublesvsoop.sourceforge.net )2006-2013, Mahmoud Fayed ( [email protected] )_____________________________________________________________________________________

    Table of contents

    1Creating Hello WorldGUI Application step by step.2Creating Hello WorldConsole Application step by step.

    [1] Creating Hello WorldGUI Application step by step.

    Hi AllIn this lesson we are going to create our first application using PWCT 1.9 (Art)At first we will run the PWCT environment

    Fig. 1

    Fig. 2

    When we run the PWCT environment we have the Goal Designer and the default application is Start.SSF

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    2/17

    Fig. 3

    If we are going to create console applicationthen we will select the template

    (Console ApplicationWithout Coding)In this lesson we are going to create GUI application so we will create new project using the template

    (GUI Application - Without Coding)

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    3/17

    Fig. 4Double click the template name item from the templates listbox to create new project using this template

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    4/17

    Fig. 5We will create new folder for our project

    The folder name is test

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    5/17

    Fig. 6And the project file name is test.SSF

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    6/17

    Fig. 7

    Fig. 8When we create new project we have the goal designer window This window contains the Main goal which contains The First Step

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    7/17

    Now we will add the main window of our application

    Click Interact button (or Press CTRL+T) to start new interaction process

    Fig. 9After clicking the interact button we will have the components browser window Using this window we will select a component to interact with it

    Fig. 10The components are classified into domains and the domains are organized using the tree structure Select the domain (Windows) then select the component (Define new window)

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    8/17

    Use double click to open it or press Enter

    Fig. 11After selecting the component we will have the interaction using transporter window

    Fig. 12

    Determine the window title for example (Hello World) then click Ok (or press CTRL+W)

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    9/17

    Fig. 13As a result of the interaction process we will return to the Goal designer again but we will notice a change

    to the steps treeWe have now new steps generated as a result of the interaction process

    Fig. 14

    To run the application click the Run button in the toolbar (or Press CTRL+R)

    Fig. 15

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    10/17

    Fig. 16[2] Creating Hello WorldConsole Application step by step.

    Now we are going to create the Hello world console application

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    11/17

    Fig. 17

    Determine the application name for example Test2.SSF

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    12/17

    Fig. 18

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    13/17

    Fig. 19When we create new project we have the goal designer window This window contains the Main goal which contains The First Step

    Now we will generate new step to print the text (Hello World) on screen

    Click Interact button (or Press CTRL+T) to start new interaction process

    Fig. 20After clicking the interact button we will have the components browser window Using this window we will select a component to interact with it

    The components are classified into domains and the domains are organized using the tree structure Select the domain (Print Text) then select the component (Print Text to Console)

    Use double click to open it or press Enter

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    14/17

    Fig. 21

    After selecting the component we will have the interaction using transporter window

    Fig. 22Write the text "Hello World then click Ok or press CTRL+W to end the interaction process

    Fig. 23

    As a result of the interaction process we will return to the Goal designer

    again but we will notice a change to the steps tree We have now new steps generated as a result of the interaction process

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    15/17

    Fig. 24Now we will generate another step to wait for a number of second to be able

    to see the Hello World message on screen Click the Interact button or press CTRL+T

    Fig. 25Select the domain (Console Application) then select the component Wait (Key/Seconds).

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    16/17

    Fig. 26Set checkbox ( Wait nSeconds ) onThen click Ok or press CTRL+W to end the interaction process

    Fig. 27As a result of the interaction process we will return to the Goal designeragain but we will notice a change to the steps tree We have now new steps generated as a result of the interaction processTo run the application click the Run button [!] in the toolbar (or Press CTRL+R)

  • 8/14/2019 Programming Without Coding Technology (PWCT) - Create your first application

    17/17

    Fig. 28