Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


To remove separators, the option_name is — , but you can append an index (starting from 0) to specify wich which separator must be removed, if there are more than one.
e.g.
GiDMenu::RemoveOption "Geometry" [list "Create" "---2"] PRE

  • GiDMenu::ModifyOption { menu_name_untranslated option_name_untranslated prepost new_option_name {new_command -default-} {new_acceler -default-} {new_icon -default-} {translationfunc _} }

Edit an existent option from a given menu
some parameters can be '-default-' to keep the current value for the command, accelerator, etc

...


e.g. a plugin can modify a menu to add some entry, but this entry will be lost when GiD create again all menus, for example when starting a new model. Registering the procedure will be applied again when recreating re-creating menus.

  • GiD_RegisterExtensionProc and GiD_UnRegisterExtensionProc

...