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:

XML Syntax
Plain code
01 <anygantt>
02   <settings>
03     <context_menu save_as_image="false" />
04   </settings>
05 </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:

XML Syntax
Plain code
01 <anygantt>
02   <settings>
03     <context_menu save_as_image="false" version_info="false" print_chart="false" about_anygantt="false" />
04   </settings>
05 </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":

XML Syntax
Plain code
01 <anygantt>
02   <settings>
03     <context_menu ersion_info="false" about_anygantt="false">
04       <save_as_image_item_text><![CDATA[SAVE GANTT CHART AS IMAGE]]></save_as_image_item_text>
05       <print_chart_item_text><![CDATA[PRINT GANTT CHART]]></print_chart_item_text>
06     </context_menu>
07   </settings>
08 </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:

XML Syntax
Plain code
01 <anygantt>
02   <settings>
03     <context_menu ersion_info="false" about_anygantt="false">
04       <save_as_image_item_text><![CDATA[SAVE AS IMAGE >>>]]></save_as_image_item_text>
05       <print_chart_item_text><![CDATA[PRINT >>>]]></print_chart_item_text>
06     </context_menu>
07   </settings>
08 </anygantt>

And this simple Gantt chart shows customized context menu:

Live Sample:  Changing Context Menu

to top