Download AionDS User Guide
Transcript
Changing the knowledge base ................................................................................................................................................................................................................................................... Adding the OK push button 1 Add the OK push button. Select New Push button from the tool palette and click the cursor (displayed as the push button icon) in the Recipe dialog box. It must be named RecipeOKPB to match the corresponding name in the New menu item’s Function Body property. Resize and display the OK push button name by using the same techniques as for the Recipe dialog. 2 Add statements to the function body of the OK push button to exit to the next statement in the UpdateRecipeValueList state. Double-click the right mouse button to create and display the WhenRecipeOKPBChosen Method and Function editors. 3 Enter the following statement in the Function Body: /* /* /* If the user's answers are successfully */ assigned to the Recipe slots, update the*/ RecipeValueList, and close RecipeDlg. */ if AssignAnswers then state(UpdateRecipeValueList) close end 4 You cannot save the Recipe dialog until you have created the independent state, UpdateRecipeValueList, which the OK push button function calls. Touring AionDS 2-39