Intellisense

The Intellisense window allows you to quickly locate commands for a given handle, as well as their parameters.

Display Modes

To display the console, select View > Tcl Console to display it at the bottom of the panel area. From the Intellisense context menu options, select Command Line to use Intellisense or Off to disable it.
Command Line
Command Line Activating Command Line displays the Tcl/Tk command line at the bottom of the console. You can type commands which contain Tcl handles and a popup Intellisense window is shown above the command line. Once you select an API in popup mode, the Intellisense window is dismissed.
Note: In a future release, the Intellisense popup window will display the command names within the console, relative to the location of the last line of text in the window.


Figure 1.

Select Command Names

The Intellisense window is displayed whenever a handle name (or variable that has a handle assigned), is typed into the console. For example, when you type hwi into the console, the Intellisense window lists the valid command names, as shown in the image below.


Figure 2.

Variables are supported. When a valid handle is set to a variable, typing that variable name preceded by a dollar sign, $, invokes the Intellisense popup for that handle.

The more specific you are with the text you enter, the fewer choices are displayed, as shown in the two examples below.

In this example, the list of commands is extensive, as only the word Capture is entered. The size of the Intellisense Popup Window is limited by the height of the graphics area.


Figure 3.
However, when the text you enter is more specific, as shown below with the text CaptureAc, the list is reduced.


Figure 4.
You can select a command name from the Intellisense window in one of the following ways:
  • Click the command name with the left mouse button or use the up/down arrow keys to scroll through the list and press the Tab key to select.
  • Double-click the on the command name from the list.
  • Select an API from the list and select Help from the right-click context menu to display the online help for the selected API.


    Figure 5.
Note: If you press Enter before using one of these selection methods, an error message is displayed.
When a command name is selected from the popup list , it is displayed in the command line below the Tk console and the Intellisense popup window still shows the command with the required arguments:


Figure 6.
You can select a command name, enter its parameters, and press Enter to evaluate it. The example below is for CaptureActiveWindow.


Figure 7.

After executing the command, the command line is empty and the command is displayed in the Tcl Console.



Figure 8.

The file test.jpg is created.

Previous commands from the console can be returned to the command line by using the arrow up/down keys.

The Intellisense menu is available in the following products: HyperGraph 2D, HyperGraph 3D, HyperView, MediaView, MotionView, TableView, and TextView.