PWCT 1.9 Art Documentation ( http://doublesvsoop.sourceforge.net )

2006-2014, Mahmoud Fayed ( msfclipper@users.sourceforge.net )

_____________________________________________________________________________________

Table of contents

1 – Creating Hello World – GUI Application step by step.

2 – Creating Hello World – Console Application step by step.

 

[1] Creating Hello World – GUI Application step by step.

 

Hi All

In this lesson we are going to create our first application using PWCT 1.9 (Art)

At first we will run the PWCT environment

 

 s1.JPG

Fig. 1

 

 s2.JPG

Fig. 2

 

 

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

 

 s3.JPG

Fig. 3

 

 

If we are going to create console application – then we will select the template (Console Application – Without Coding)

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

 

 s4.JPG

Fig. 4

 

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

 

 s5.JPG

Fig. 5

 

We will create new folder for our project

The folder name is test

 

 s6.JPG

Fig. 6

 

And the project file name is test.SSF

 

 s7.JPG

Fig. 7

 

 

 s8.JPG

Fig. 8

 

When we create new project we have the goal designer window

This window contains the Main goal which contains The First Step

Now we will add the main window of our application

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

 

 s9.JPG

Fig. 9

 

After clicking the interact button we will have the components browser window

Using this window we will select a component to interact with it

 

 s10.JPG

Fig. 10

 

The 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)

Use double click to open it or press Enter

 

 s11.JPG

Fig. 11

 

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

 

 s12.JPG

Fig. 12

 

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

 

 s13.JPG

Fig. 13

 

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

 

 s14.JPG

Fig. 14

 

 

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

 

 s15.JPG

Fig. 15

 

 

 s16.JPG

Fig. 16

 

[2] Creating Hello World – Console Application step by step.

 

Now we are going to create the Hello world console application

 

 s17.JPG

Fig. 17

 

 

Determine the application name for example Test2.SSF

 

 s18.JPG

Fig. 18

 

 

 s19.JPG

Fig. 19

 

When 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

 

 s20.JPG

Fig. 20

 

After 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

 

 s21.JPG

Fig. 21

 

 

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

 

 s22.JPG

Fig. 22

 

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

 

 s23.JPG

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

 

 s24.JPG

Fig. 24

 

Now 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

 

 s25.jpg

Fig. 25

 

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

 

 s26.JPG

Fig. 26

 

Set checkbox ( Wait nSeconds ) on

Then click Ok or press CTRL+W to end the interaction process

 

 s27.JPG

Fig. 27

 

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

 

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

 

 s28.JPG

Fig. 28