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 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 Fig. (2) Component Browser – Select the component (Define New Window) After selecting the component click Ok or press ENTER Fig. (3) Interaction page - Set the properties and enter the required data as in the image above Fig. (4) Form Designer 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 Fig. (6) Component Browser – Select the component (Tab) After selecting the component click Ok or press ENTER Fig. (7) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (9) Component Browser – Select the component (Tab Events) After selecting the component click Ok or press ENTER Fig. (10) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (12) Component Browser – Select the component (Tab Page) After selecting the component click Ok or press ENTER Fig. (13) Interaction page - Set the properties and enter the required data as in the image above Fig. (14) Form Designer 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 Fig. (16) Component Browser – Select the component (Define ActiveX control) After selecting the component click Ok or press ENTER Fig. (17) Interaction page - Set the properties and enter the required data as in the image above Fig. (18) Form Designer 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 Fig. (20) Component Browser – Select the component (Tab Page) After selecting the component click Ok or press ENTER Fig. (21) Interaction page - Set the properties and enter the required data as in the image above Fig. (22) Form Designer 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 Fig. (24) Component Browser – Select the component (Define ActiveX control) After selecting the component click Ok or press ENTER Fig. (25) Interaction page - Set the properties and enter the required data as in the image above Fig. (26) Form Designer 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 Fig. (28) Component Browser – Select the component (Call Procedure) After selecting the component click Ok or press ENTER Fig. (29) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (31) Component Browser – Select the component (ActiveX Object) After selecting the component click Ok or press ENTER Fig. (32) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (34) Component Browser – Select the component (ActiveX Object) After selecting the component click Ok or press ENTER Fig. (35) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (37) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER Fig. (38) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (40) Component Browser – Select the component (Tab Class) After selecting the component click Ok or press ENTER Fig. (41) Interaction page - Set the properties and enter the required data as in the image above Fig. (42) Interaction page - Set the properties and enter the required data as in the image above Fig. (43) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (45) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (46) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (48) Component Browser – Select the component (ActiveX Class) After selecting the component click Ok or press ENTER Fig. (49) Interaction page - Set the properties and enter the required data as in the image above Fig. (50) Interaction page - Set the properties and enter the required data as in the image above Fig. (51) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (53) Component Browser – Select the component (ActiveX Class) After selecting the component click Ok or press ENTER Fig. (54) Interaction page - Set the properties and enter the required data as in the image above Fig. (55) Interaction page - Set the properties and enter the required data as in the image above Fig. (56) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (58) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (59) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (61) Component Browser – Select the component (ActiveX Class) After selecting the component click Ok or press ENTER Fig. (62) Interaction page - Set the properties and enter the required data as in the image above Fig. (63) Interaction page - Set the properties and enter the required data as in the image above Fig. (64) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (66) Component Browser – Select the component (ActiveX Class) After selecting the component click Ok or press ENTER Fig. (67) Interaction page - Set the properties and enter the required data as in the image above Fig. (68) Interaction page - Set the properties and enter the required data as in the image above Fig. (69) Interaction page - Set the properties and enter the required data as in the image above 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 Fig. (71) Application during the runtime
|