User Interface Typescript Commands

Revision as of 19:22, 29 January 2009 by Lchrisman (talk | contribs) (→‎Close)

The typescript commands described here can be used from the typescript window or from a button script to manipulate the user interface, for example, by displaying or closing selected windows. These commands generally have no effect when used from ADE.

Open

Open [diagram | object | definition | table | graph | result ] o

The first parameter specifies what kind of window to open.

diagram window, object window, Definition: Table: Result as table, Graph: Result as graph Result: Result as table or graph depending on what it was last saved as.

Open Diagram m

Opens the diagram window for module m.

Open Object o

Opens the object window for o.

Open Definition o

Opens the edit table window if o is defined as edit table, otherwise input control if there is one, otherwise definition attribute.

Open Table v

Opens the result table for v. The view mode (Mid, Mean, PDF, etc) is determined by the value of the ValueState attribute of v. It will open to the previously viewed mode, unless you alter this attribute prior to executing.

Open Graph v

Opens the result graph for v. The view mode (Mid, Mean, PDF, etc) is determined by the value of the ValueState attribute of v.

Open Result v

Opens the result window for v, to the view previously shown. The view previous shown is stored as the 7th field of the ValueState]] attribute, and the result mode is the 8th component. (The other components of that attribute store the location and size of the window).

Close

Close m

When used within the typescript window, there is always a "current module". If you've created a module from typescript by typing:

Module myModuleIdent

then this will be the current module. If you've used the typescript command:

Open myModule

then that will be your current module. When you create new objects from typescript, they are placed into the current module.

Close m

This can be used when m is the current module. If m is the current module and also the top-level module, it will close your model, prompting whether you want to save changes if any unsaved changes are pending, and then exit Analytica. If m is a sub-module and the current one, then the current module will become the parent of m. If m is not the current module, it signals an error.

Close Diagram m

Closes the diagram window for module m.

Close Object o

Closes the object window for o.

Close Definition o

Closes the edit table window for object o.

Close Graph v

Close Table v

Close Result v

These all close the result window for v.

Edit

Edit v

Same as: Open Definition v

ResynchAllWindows

There are some situations where changes made from button scripts, or assignments to attributes, may cause changes to the underlying model that the user interface does not detect. These cases are fairly rare, but when they happen, after the changes are made, parts of the user interface may be displaying older content, which is now inconsistent with the underlying contents of the model. If you encounter one of these situations, the ResynchAllWindows command can be executed, which will cause all open windows to resynchronize with the underlying model. ResynchAllWindows takes no parameters.

BrowseModeOn

Equivalent to pressing the Browse tool button on the toolbar. Changes the user into browse-mode if he is currently in edit mode.

Comments


You are not allowed to post comments.