deFindToolbar
deFindToolbar(S_name w_sessionWindow )=>o_instance/ nil
Description
Searches for and returns an instance of the specified toolbar installed in the given session window. This function also supports the Virtuoso design editor toolbars, such as Workspaces, Go, and Bookmarks.
Arguments
Value Returned
|
Returns an instance of the specified toolbar in the given session window. |
|
|
Returns |
Examples
In this example, the S_name values for the Schematics toolbar in the toolbar definition file are as follows:
(nil
name schFileToolbar
text "File"
items (
...
You can search for the Schematics toolbar in a session window, say 1, using any of the function calls listed below:
(deFindToolbar 'schFileToolbar (swindow 1))
(deFindToolbar "File" (swindow 1))
The following example illustrates how you can show the Workspaces toolbar and hide the Bookmarks toolbar in the session window 2:
hiShowToolbar( deFindToolbar( "Workspaces" swindow(2)))
hiHideToolbar( deFindToolbar( "Bookmarks" swindow(2)))
Return to top