Personal tools
You are here: Home CDAT Tutorials Adding your own menus and function into VCDAT Basic, adding a menu and a function
Document Actions

Basic, adding a menu and a function

by Charles Doutriaux last modified 2008-01-09 14:36

First of all, you need to make sure you are in "vcdat full mode"

If your main menu only shows "File" and "Preferences" select "Preferences-->Change to VCDAT Full"



Now in the "Tools" menu select "Add User New Menu"

This should popup a dialog window similar to the following

add menu function pop up

















































The first lines allow you to add your own menu, in this example we will add a menu called "MyMenu"
NOTE: You can only use alphanumerical characters for the name, space are not allowed
the description box, permits to add a little description on what your menu is supposed to contain

Once you clicked "Add" your menu is accessible and you can add your own functions to it

For this use the modify user menu section

Select the menu you wnat to add functions to from the "Menu Name" pull down list

Now you can add a function either from a module you'd import or from a file
Use the first line of the "Add funtion to menu from file" to select the file or module to import from
Once you cliked on "browse" all available function in the module/file are listed in the "Function" pulldown
Select the one you'd like, type in its name inside your menu and click add
That it.
NOTE: If your function plots thing into a vcs canvas using a template. Check the "This function plots onto the VCS canvas" checkbox and look at the next tutorial to know how to create such functions

The next 2 sections ("Delete or Rename Function" and "delete User Menu" let you remove function/menu from your VCDAT.


Powered by Plone