For example, the Visible property (in the Behavior sub-category) determines whether or not the object is displayed on the script form on which it is placed. A property is a characteristic of an object that influences either its visible behavior or its operations. The exact list of attributes available will depend on the particular type of component currently under inspection. The Properties tab of the panel lists all property attributes for the selected component.The information is displayed over two tabs – Properties and Events: Use the Object Inspector panel to configure the form dialog and its action. Alternatively, use the drop-down field at the top of the panel to choose from a list of all components currently placed on the active form. ![]() The Object Inspector panel enables you to interrogate and edit the properties and events of components in the active script form. Clicking on a single component on the active script form in the design editor window will select the component and display attributes associated to it in the Object Inspector panel. The 'form' term refers to the window that is being designed in real-time in the scripting system, and a 'dialog' is an active form in the software that is waiting for user feedback and takes action when a dialog button or a control has been clicked. The terms 'dialog' and 'script form' are descriptively equivalent in this guide. To stop a running script, use the Stop button ( ), select Run » Stop from the main menu, or use the Ctrl+F3 shortcut. Use the Run » Set Project Startup Procedure to change the setting to a different procedure, or close and reopen the script project to clear the setting. Once set, the script is easy to run repeatedly from the editor using the Run command. When the Run command is selected for the first time, the Select Item to Run dialog will open allowing you to specify a script's main procedure ( ShowAMessage in this case). Procedures that require passed parameters are called from within the script (or from another script), but not from an external system such as the Select Item To Run dialog where parameters are not passed.Ī script can also be executed using the editor's Run command, accessed by the Run button ( ), the F9 shortcut key, or by selecting Run » Run from the main menus.Īlong with the Run command itself, the dropdown Run menu offers a range of script control and debugging commands. ![]() Only procedures or functions that don't have parameters appear in the Select Item To Run dialog. This script has a procedure with no parameters. Assuming the project and script file are set to the DelphiScript language, a simple 'Hello World' script can be entered as below. While many of the principles and approaches will remain the same, be aware that interfaces, objects, methods, properties, and the like will have changed since then, and will not reflect the entirety of those found in later versions of the software.Ī quick and basic scripting exercise can be completed by first creating a new project and script file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |