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

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

_____________________________________________________________________________________

Table of contents

1 - Introduction

2 - Implementation steps

3 - Final Steps Tree

4 - Application during the runtime

1 - Introduction

In this lesson we are going to create more than one Tabbed Window with ActiveX control in each one.

2 - Implementation Steps

s1.JPG

Fig. (1) Goal Desginer - Steps Tree

Select the step (The First Step)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Windows)

                3 - Select the component (Define New Window)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Define New Window)

                Note : Stop typing when you see the required component is selected

s2.JPG

Fig. (2) Component Browser – Select the component (Define New Window)

After selecting the component click Ok or press ENTER

s3.JPG

Fig. (3) Interaction page - Set the properties and enter the required data as in the image above

s4.JPG

Fig. (4) Form Designer

s5.JPG

Fig. (5) Goal Desginer - Steps Tree

Select the step (Window Controls)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Controls)

                3 - Select the component (Tab)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Tab)

                Note : Stop typing when you see the required component is selected

s6.JPG

Fig. (6) Component Browser – Select the component (Tab)

After selecting the component click Ok or press ENTER

s7.JPG

Fig. (7) Interaction page - Set the properties and enter the required data as in the image above

s8.JPG

Fig. (8) Goal Desginer - Steps Tree

Select the step (Events)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Events)

                3 - Select the component (Tab Events)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Tab Events)

                Note : Stop typing when you see the required component is selected

s9.JPG

Fig. (9) Component Browser – Select the component (Tab Events)

After selecting the component click Ok or press ENTER

s10.JPG

Fig. (10) Interaction page - Set the properties and enter the required data as in the image above

s11.JPG

Fig. (11) Goal Desginer - Steps Tree

Select the step (Pages)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Controls)

                3 - Select the component (Tab Page)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Tab Page)

                Note : Stop typing when you see the required component is selected

s12.JPG

Fig. (12) Component Browser – Select the component (Tab Page)

After selecting the component click Ok or press ENTER

s13.JPG

Fig. (13) Interaction page - Set the properties and enter the required data as in the image above

s14.JPG

Fig. (14) Form Designer

s15.JPG

Fig. (15) Goal Desginer - Steps Tree

Select the step (Controls)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (ActiveX)

                3 - Select the component (Define ActiveX control)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Define ActiveX control)

                Note : Stop typing when you see the required component is selected

s16.JPG

Fig. (16) Component Browser – Select the component (Define ActiveX control)

After selecting the component click Ok or press ENTER

s17.JPG

Fig. (17) Interaction page - Set the properties and enter the required data as in the image above

s18.JPG

Fig. (18) Form Designer

s19.JPG

Fig. (19) Goal Desginer - Steps Tree

Select the step (Pages)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Controls)

                3 - Select the component (Tab Page)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Tab Page)

                Note : Stop typing when you see the required component is selected

s20.JPG

Fig. (20) Component Browser – Select the component (Tab Page)

After selecting the component click Ok or press ENTER

s21.JPG

Fig. (21) Interaction page - Set the properties and enter the required data as in the image above

s22.JPG

Fig. (22) Form Designer

s23.JPG

Fig. (23) Goal Desginer - Steps Tree

Select the step (Controls)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (ActiveX)

                3 - Select the component (Define ActiveX control)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Define ActiveX control)

                Note : Stop typing when you see the required component is selected

s24.JPG

Fig. (24) Component Browser – Select the component (Define ActiveX control)

After selecting the component click Ok or press ENTER

s25.JPG

Fig. (25) Interaction page - Set the properties and enter the required data as in the image above

s26.JPG

Fig. (26) Form Designer

s27.JPG

Fig. (27) Goal Desginer - Steps Tree

Select the step (Open web pages)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Structure Programming)

                3 - Select the component (Call Procedure)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Call Procedure)

                Note : Stop typing when you see the required component is selected

s28.JPG

Fig. (28) Component Browser – Select the component (Call Procedure)

After selecting the component click Ok or press ENTER

s29.JPG

Fig. (29) Interaction page - Set the properties and enter the required data as in the image above

s30.JPG

Fig. (30) Goal Desginer - Steps Tree

Select the step (Open web pages)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (ActiveX)

                3 - Select the component (ActiveX Object)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (ActiveX Object)

                Note : Stop typing when you see the required component is selected

s31.JPG

Fig. (31) Component Browser – Select the component (ActiveX Object)

After selecting the component click Ok or press ENTER

s32.JPG

Fig. (32) Interaction page - Set the properties and enter the required data as in the image above

s33.JPG

Fig. (33) Goal Desginer - Steps Tree

Select the step (Open web pages)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (ActiveX)

                3 - Select the component (ActiveX Object)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (ActiveX Object)

                Note : Stop typing when you see the required component is selected

s34.JPG

Fig. (34) Component Browser – Select the component (ActiveX Object)

After selecting the component click Ok or press ENTER

s35.JPG

Fig. (35) Interaction page - Set the properties and enter the required data as in the image above

s36.JPG

Fig. (36) Goal Desginer - Steps Tree

Select the step (Procedure)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Structure Programming)

                3 - Select the component (Define Procedure)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Define Procedure)

                Note : Stop typing when you see the required component is selected

s37.JPG

Fig. (37) Component Browser – Select the component (Define Procedure)

After selecting the component click Ok or press ENTER

s38.JPG

Fig. (38) Interaction page - Set the properties and enter the required data as in the image above

s39.JPG

Fig. (39) Goal Desginer - Steps Tree

Select the step (Start Here)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Classes)

                3 - Select the component (Tab Class)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (Tab Class)

                Note : Stop typing when you see the required component is selected

s40.JPG

Fig. (40) Component Browser – Select the component (Tab Class)

After selecting the component click Ok or press ENTER

s41.JPG

Fig. (41) Interaction page - Set the properties and enter the required data as in the image above

s42.JPG

Fig. (42) Interaction page - Set the properties and enter the required data as in the image above

s43.JPG

Fig. (43) Interaction page - Set the properties and enter the required data as in the image above

s44.JPG

Fig. (44) Goal Desginer - Steps Tree

Select the step (Start Here)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Control Structure)

                3 - Select the component (IF Statement)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (IF Statement)

                Note : Stop typing when you see the required component is selected

s45.JPG

Fig. (45) Component Browser – Select the component (IF Statement)

After selecting the component click Ok or press ENTER

s46.JPG

Fig. (46) Interaction page - Set the properties and enter the required data as in the image above

s47.JPG

Fig. (47) Goal Desginer - Steps Tree

Select the step (page 1)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (ActiveX)

                3 - Select the component (ActiveX Class)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (ActiveX Class)

                Note : Stop typing when you see the required component is selected

s48.JPG

Fig. (48) Component Browser – Select the component (ActiveX Class)

After selecting the component click Ok or press ENTER

s49.JPG

Fig. (49) Interaction page - Set the properties and enter the required data as in the image above

s50.JPG

Fig. (50) Interaction page - Set the properties and enter the required data as in the image above

s51.JPG

Fig. (51) Interaction page - Set the properties and enter the required data as in the image above

s52.JPG

Fig. (52) Goal Desginer - Steps Tree

Select the step (page 1)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (ActiveX)

                3 - Select the component (ActiveX Class)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (ActiveX Class)

                Note : Stop typing when you see the required component is selected

s53.JPG

Fig. (53) Component Browser – Select the component (ActiveX Class)

After selecting the component click Ok or press ENTER

s54.JPG

Fig. (54) Interaction page - Set the properties and enter the required data as in the image above

s55.JPG

Fig. (55) Interaction page - Set the properties and enter the required data as in the image above

s56.JPG

Fig. (56) Interaction page - Set the properties and enter the required data as in the image above

s57.JPG

Fig. (57) Goal Desginer - Steps Tree

Select the step (Start Here)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (Control Structure)

                3 - Select the component (IF Statement)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (IF Statement)

                Note : Stop typing when you see the required component is selected

s58.JPG

Fig. (58) Component Browser – Select the component (IF Statement)

After selecting the component click Ok or press ENTER

s59.JPG

Fig. (59) Interaction page - Set the properties and enter the required data as in the image above

s60.JPG

Fig. (60) Goal Desginer - Steps Tree

Select the step (Start Here)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (ActiveX)

                3 - Select the component (ActiveX Class)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (ActiveX Class)

                Note : Stop typing when you see the required component is selected

s61.JPG

Fig. (61) Component Browser – Select the component (ActiveX Class)

After selecting the component click Ok or press ENTER

s62.JPG

Fig. (62) Interaction page - Set the properties and enter the required data as in the image above

s63.JPG

Fig. (63) Interaction page - Set the properties and enter the required data as in the image above

s64.JPG

Fig. (64) Interaction page - Set the properties and enter the required data as in the image above

s65.JPG

Fig. (65) Goal Desginer - Steps Tree

Select the step (Start Here)

We will start now new interaction process to generate new steps to our steps tree.

The slow way (Using Mouse):

                1 - Click Interact to open the components browser

                2 - Select the domain (ActiveX)

                3 - Select the component (ActiveX Class)

The fast way (Using Keyboard shortcuts):

                1 - Get the component using its name by typing (ActiveX Class)

                Note : Stop typing when you see the required component is selected

s66.JPG

Fig. (66) Component Browser – Select the component (ActiveX Class)

After selecting the component click Ok or press ENTER

s67.JPG

Fig. (67) Interaction page - Set the properties and enter the required data as in the image above

s68.JPG

Fig. (68) Interaction page - Set the properties and enter the required data as in the image above

s69.JPG

Fig. (69) Interaction page - Set the properties and enter the required data as in the image above

s70.JPG

Fig. (70) Goal Desginer - Final Steps Tree

3 - Final Steps Tree

The First Step

                Define New Window ( win1 ) , Title : "More than one Tabbed Window with ActiveX control in each one"

                                Window Events

                                Window Properties

                                Window Controls

                                                Define New Tab ( Tab1 )

                                                                Events

                                                                                Event: ON CHANGE : Action tabchange()

                                                                Properties

                                                                Pages

                                                                                Page ( "One" )

                                                                                                Controls

                                                                                                                Active Control ( oActiveX1 )

                                                                                                End Page

                                                                                Page ( "Two" )

                                                                                                Controls

                                                                                                                Active Control ( oActiveX2 )

                                                                                                End Page

                                                                End Tab

                                                Open web pages

                                                                Call Procedure TabChange

                                                                oActiveX1.Navigate ( "google.com" )

                                                                oActiveX2.Navigate ( "google.com" )

                                End Of Window

                                Activate window

Procedure

                Define Procedure TabChange

                                Start Here

                                                nPageTab1 = win1.Tab1.Value

                                                IF ( nPageTab1 = 1 )

                                                                Start Here

                                                                                page 1

                                                                                                oActiveX1.Show ( )

                                                                                                oActiveX2.Hide ( )

                                                                                ELSEIF ( nPageTab1 = 2 )

                                                                                                Start Here

                                                                                                                oActiveX2.Show ( )

                                                                                                                oActiveX1.Hide ( )

                                                                END OF IF STATEMENT

                                End of Procedure

4 - Application during the runtime

runtime1.JPG

Fig. (71) Application during the runtime