Context Menu

Overview

AnyGantt adds special context menu items into Flash Player context menu. When user clicks on AnyGantt Flash movie the following context menu is shown:

Items are :

All settings of context menu are configured in <context_menu> in <settings>.

Sample XML syntax:

<anygantt>
  
<settings>
    
<context_menu save_as_image="false" />
  
</settings>
</anygantt>

to top

Turning Context Menu Items On/Off

If you want to turn on or off any item of context menu of AnyGantt:

Attribute Description
save_as_image Turns On/Off "Save As Image" menu item
version_info Turns On/Off menu item that displays the current version of AnyGantt
print_chart Turns On/Off "Print Chart" menu item
about_anygantt Turns On/Off "About AnyGantt" menu item

Syntax for XML that turns off all items of context menu in AnyGantt:

<anygantt>
  
<settings>
    
<context_menu save_as_image="false" version_info="false" print_chart="false" about_anygantt="false" />
  
</settings>
</anygantt>

to top

Customization and Localization

You can customize the following items texts:

This XML snippet sets text to "SAVE GANTT CHART AS IMAGE" and "PRINT GANTT CHART":

<anygantt>
  
<settings>
    
<context_menu ersion_info="false" about_anygantt="false">
      
<save_as_image_item_text>SAVE GANTT CHART AS IMAGE</save_as_image_item_text>
      
<print_chart_item_text>PRINT GANTT CHART</print_chart_item_text>
    
</context_menu>
  
</settings>
</anygantt>

As you can see <save_as_image_item_text> - sets new text for "Save as Image..." and <print_chart_item_text> - for "Print Chart...".

Use <![CDATA[]]> to use XML with special symbols:

<anygantt>
  
<settings>
    
<context_menu ersion_info="false" about_anygantt="false">
      
<save_as_image_item_text>SAVE AS IMAGE &gt;&gt;&gt;</save_as_image_item_text>
      
<print_chart_item_text>PRINT &gt;&gt;&gt;</print_chart_item_text>
    
</context_menu>
  
</settings>
</anygantt>

And this simple Gantt chart shows customized context menu:

Changing Context Menu - Click to see Live Chart Preview
Changing Context Menu - Click to see Live Chart Preview

to top