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 goint to create the Tree Manager sample. 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 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 (Windows) 3 - Select the component (Window Events) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Window Events) Note : Stop typing when you see the required component is selected Fig. (6) Component Browser – Select the component (Window Events) 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) Form Designer Fig. (9) 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 (Tree) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Tree) Note : Stop typing when you see the required component is selected Fig. (10) Component Browser – Select the component (Tree) After selecting the component click Ok or press ENTER Fig. (11) Interaction page - Set the properties and enter the required data as in the image above Fig. (12) Form Designer Fig. (13) 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 (Button) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button) Note : Stop typing when you see the required component is selected Fig. (14) Component Browser – Select the component (Button) After selecting the component click Ok or press ENTER Fig. (15) Interaction page - Set the properties and enter the required data as in the image above Fig. (16) Form Designer Fig. (17) Goal Desginer - Steps Tree Select the step (Button 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 (Button Events) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Events) Note : Stop typing when you see the required component is selected Fig. (18) Component Browser – Select the component (Button Events) After selecting the component click Ok or press ENTER Fig. (19) Interaction page - Set the properties and enter the required data as in the image above Fig. (20) 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 (Button) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button) Note : Stop typing when you see the required component is selected Fig. (21) Component Browser – Select the component (Button) After selecting the component click Ok or press ENTER Fig. (22) Interaction page - Set the properties and enter the required data as in the image above Fig. (23) Form Designer Fig. (24) Goal Desginer - Steps Tree Select the step (Button 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 (Button Events) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Events) Note : Stop typing when you see the required component is selected Fig. (25) Component Browser – Select the component (Button Events) After selecting the component click Ok or press ENTER Fig. (26) Interaction page - Set the properties and enter the required data as in the image above Fig. (27) 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 (Button) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button) Note : Stop typing when you see the required component is selected Fig. (28) Component Browser – Select the component (Button) 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) Form Designer Fig. (31) Goal Desginer - Steps Tree Select the step (Button 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 (Button Events) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Events) Note : Stop typing when you see the required component is selected Fig. (32) Component Browser – Select the component (Button Events) After selecting the component click Ok or press ENTER Fig. (33) Interaction page - Set the properties and enter the required data as in the image above Fig. (34) 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 (Button) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button) Note : Stop typing when you see the required component is selected Fig. (35) Component Browser – Select the component (Button) After selecting the component click Ok or press ENTER Fig. (36) Interaction page - Set the properties and enter the required data as in the image above Fig. (37) Form Designer Fig. (38) Goal Desginer - Steps Tree Select the step (Button 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 (Button Events) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Events) Note : Stop typing when you see the required component is selected Fig. (39) Component Browser – Select the component (Button Events) After selecting the component click Ok or press ENTER Fig. (40) Interaction page - Set the properties and enter the required data as in the image above Fig. (41) 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 (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. (42) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER 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 (GUI Application) 3 - Select the component (Input Box) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Input Box) Note : Stop typing when you see the required component is selected Fig. (45) Component Browser – Select the component (Input Box) 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 (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 (Tree Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Tree Class) Note : Stop typing when you see the required component is selected Fig. (48) Component Browser – Select the component (Tree 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 (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 (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. (53) Component Browser – Select the component (Call Procedure) 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) 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 (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. (56) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER Fig. (57) Interaction page - Set the properties and enter the required data as in the image above Fig. (58) 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 (GUI Application) 3 - Select the component (Input Box) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Input Box) Note : Stop typing when you see the required component is selected Fig. (59) Component Browser – Select the component (Input Box) After selecting the component click Ok or press ENTER Fig. (60) Interaction page - Set the properties and enter the required data as in the image above Fig. (61) 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 (Tree Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Tree Class) Note : Stop typing when you see the required component is selected Fig. (62) Component Browser – Select the component (Tree Class) After selecting the component click Ok or press ENTER 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) Interaction page - Set the properties and enter the required data as in the image above Fig. (66) 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. (67) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (68) Interaction page - Set the properties and enter the required data as in the image above Fig. (69) 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 (Tree Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Tree Class) Note : Stop typing when you see the required component is selected Fig. (70) Component Browser – Select the component (Tree Class) After selecting the component click Ok or press ENTER Fig. (71) Interaction page - Set the properties and enter the required data as in the image above Fig. (72) Interaction page - Set the properties and enter the required data as in the image above Fig. (73) Interaction page - Set the properties and enter the required data as in the image above Fig. (74) 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 (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. (75) Component Browser – Select the component (Call Procedure) After selecting the component click Ok or press ENTER Fig. (76) Interaction page - Set the properties and enter the required data as in the image above Fig. (77) 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 (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. (78) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER Fig. (79) Interaction page - Set the properties and enter the required data as in the image above Fig. (80) 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. (81) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (82) Interaction page - Set the properties and enter the required data as in the image above Fig. (83) 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 (GUI Application) 3 - Select the component (Show Message) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Show Message) Note : Stop typing when you see the required component is selected Fig. (84) Component Browser – Select the component (Show Message) After selecting the component click Ok or press ENTER Fig. (85) Interaction page - Set the properties and enter the required data as in the image above Fig. (86) 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 (Structure Programming) 3 - Select the component (Return Value) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Return Value) Note : Stop typing when you see the required component is selected Fig. (87) Component Browser – Select the component (Return Value) After selecting the component click Ok or press ENTER Fig. (88) Interaction page - Set the properties and enter the required data as in the image above Fig. (89) 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 (Tree Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Tree Class) Note : Stop typing when you see the required component is selected Fig. (90) Component Browser – Select the component (Tree Class) After selecting the component click Ok or press ENTER Fig. (91) Interaction page - Set the properties and enter the required data as in the image above Fig. (92) Interaction page - Set the properties and enter the required data as in the image above Fig. (93) Interaction page - Set the properties and enter the required data as in the image above Fig. (94) 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 (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. (95) Component Browser – Select the component (Call Procedure) After selecting the component click Ok or press ENTER Fig. (96) Interaction page - Set the properties and enter the required data as in the image above Fig. (97) 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 (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. (98) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER Fig. (99) Interaction page - Set the properties and enter the required data as in the image above Fig. (100) 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. (101) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (102) Interaction page - Set the properties and enter the required data as in the image above Fig. (103) 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 (GUI Application) 3 - Select the component (Show Message) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Show Message) Note : Stop typing when you see the required component is selected Fig. (104) Component Browser – Select the component (Show Message) After selecting the component click Ok or press ENTER Fig. (105) Interaction page - Set the properties and enter the required data as in the image above Fig. (106) 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 (Structure Programming) 3 - Select the component (Return Value) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Return Value) Note : Stop typing when you see the required component is selected Fig. (107) Component Browser – Select the component (Return Value) After selecting the component click Ok or press ENTER Fig. (108) Interaction page - Set the properties and enter the required data as in the image above Fig. (109) 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 (Tree Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Tree Class) Note : Stop typing when you see the required component is selected Fig. (110) Component Browser – Select the component (Tree Class) After selecting the component click Ok or press ENTER Fig. (111) Interaction page - Set the properties and enter the required data as in the image above Fig. (112) Interaction page - Set the properties and enter the required data as in the image above Fig. (113) Interaction page - Set the properties and enter the required data as in the image above Fig. (114) 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 (GUI Application) 3 - Select the component (Input Box) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Input Box) Note : Stop typing when you see the required component is selected Fig. (115) Component Browser – Select the component (Input Box) After selecting the component click Ok or press ENTER Fig. (116) Interaction page - Set the properties and enter the required data as in the image above Fig. (117) 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 (Tree Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Tree Class) Note : Stop typing when you see the required component is selected Fig. (118) Component Browser – Select the component (Tree Class) After selecting the component click Ok or press ENTER Fig. (119) Interaction page - Set the properties and enter the required data as in the image above Fig. (120) Interaction page - Set the properties and enter the required data as in the image above Fig. (121) Interaction page - Set the properties and enter the required data as in the image above Fig. (122) 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 (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. (123) Component Browser – Select the component (Call Procedure) After selecting the component click Ok or press ENTER Fig. (124) Interaction page - Set the properties and enter the required data as in the image above Fig. (125) 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 (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. (126) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER Fig. (127) Interaction page - Set the properties and enter the required data as in the image above Fig. (128) 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 (Tree Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Tree Class) Note : Stop typing when you see the required component is selected Fig. (129) Component Browser – Select the component (Tree Class) After selecting the component click Ok or press ENTER Fig. (130) Interaction page - Set the properties and enter the required data as in the image above Fig. (131) Interaction page - Set the properties and enter the required data as in the image above Fig. (132) Interaction page - Set the properties and enter the required data as in the image above Fig. (133) 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. (134) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (135) Interaction page - Set the properties and enter the required data as in the image above Fig. (136) 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 (Button Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Class) Note : Stop typing when you see the required component is selected Fig. (137) Component Browser – Select the component (Button Class) After selecting the component click Ok or press ENTER Fig. (138) Interaction page - Set the properties and enter the required data as in the image above Fig. (139) Interaction page - Set the properties and enter the required data as in the image above Fig. (140) Interaction page - Set the properties and enter the required data as in the image above Fig. (141) 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 (Button Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Class) Note : Stop typing when you see the required component is selected Fig. (142) Component Browser – Select the component (Button Class) After selecting the component click Ok or press ENTER Fig. (143) Interaction page - Set the properties and enter the required data as in the image above Fig. (144) Interaction page - Set the properties and enter the required data as in the image above Fig. (145) Interaction page - Set the properties and enter the required data as in the image above Fig. (146) 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 (Button Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Class) Note : Stop typing when you see the required component is selected Fig. (147) Component Browser – Select the component (Button Class) After selecting the component click Ok or press ENTER Fig. (148) Interaction page - Set the properties and enter the required data as in the image above Fig. (149) Interaction page - Set the properties and enter the required data as in the image above Fig. (150) Interaction page - Set the properties and enter the required data as in the image above Fig. (151) 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 (Button Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Class) Note : Stop typing when you see the required component is selected Fig. (152) Component Browser – Select the component (Button Class) After selecting the component click Ok or press ENTER Fig. (153) Interaction page - Set the properties and enter the required data as in the image above Fig. (154) Interaction page - Set the properties and enter the required data as in the image above Fig. (155) Interaction page - Set the properties and enter the required data as in the image above Fig. (156) 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 (Button Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Class) Note : Stop typing when you see the required component is selected Fig. (157) Component Browser – Select the component (Button Class) After selecting the component click Ok or press ENTER Fig. (158) Interaction page - Set the properties and enter the required data as in the image above Fig. (159) Interaction page - Set the properties and enter the required data as in the image above Fig. (160) Interaction page - Set the properties and enter the required data as in the image above Fig. (161) 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 (Button Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Class) Note : Stop typing when you see the required component is selected Fig. (162) Component Browser – Select the component (Button Class) After selecting the component click Ok or press ENTER Fig. (163) Interaction page - Set the properties and enter the required data as in the image above Fig. (164) Interaction page - Set the properties and enter the required data as in the image above Fig. (165) Interaction page - Set the properties and enter the required data as in the image above Fig. (166) Goal Desginer - Final Steps Tree 3 - Final Steps Tree The First Step Define New Window ( win1 ) , Title : "Tree Manager sample" Window Events Event: ON INIT : Action mycheck() Window Properties Window Controls Define New Tree ( tree1 ) Tree Events Tree Properties Define New Button ( btn1 ) , Caption : "Add Item (Root)" Button Events Event: ON CLICK : Action myaddroot() Button Properties Define New Button ( btn2 ) , Caption : "Add Item (Child)" Button Events Event: ON CLICK : Action myaddchild() Button Properties Define New Button ( btn3 ) , Caption : "Edit" Button Events Event: ON CLICK : Action myedit() Button Properties Define New Button ( btn4 ) , Caption : "Delete" Button Events Event: ON CLICK : Action mydelete() Button Properties End Of Window Activate window Define Procedure myaddroot Start Here myvalue = Input Box prompt "Name :" win1.tree1.AddItem ( myvalue,0 ) Call Procedure mycheck End of Procedure Define Procedure myaddchild Start Here myvalue = Input Box prompt "Name :" win1.tree1.AddItem ( myvalue,win1.tree1.value ) IF ( .not. win1.tree1.value = 0 ) Start Here win1.tree1.Expand ( win1.tree1.value ) END OF IF STATEMENT Call Procedure mycheck End of Procedure Define Procedure mydelete Start Here IF ( win1.tree1.value = 0 ) Start Here Show Message "Please select the item" Title "Sorry" Type: Message Box Return 0 END OF IF STATEMENT win1.tree1.DeleteItem ( win1.tree1.value ) Call Procedure mycheck End of Procedure Define Procedure myedit Start Here IF ( win1.tree1.value = 0 ) Start Here Show Message "Please select the item" Title "Sorry" Type: Message Box Return 0 END OF IF STATEMENT myvalue = win1.tree1.item(win1.tree1.value) myvalue = Input Box prompt win1.tree1.value win1.tree1.item(win1.tree1.value) := myvalue Call Procedure mycheck End of Procedure Define Procedure mycheck Start Here mycount = win1.tree1.ItemCount IF ( mycount = 0 ) Start Here win1.btn2.Enabled := false win1.btn3.Enabled := false win1.btn4.Enabled := false ELSE Start Here win1.btn2.Enabled := true win1.btn3.Enabled := true win1.btn4.Enabled := true END OF IF STATEMENT End of Procedure 4 - Application during the runtime Fig. (167) Application during the runtime
|