Vogtinator wrote:Write this XML into a file and send it as MyLib/mymenus.tns to the calc.
- Code: Select all
<my_menus>
<app name="Program Editor">
<!-- location_level_X <= 30 -->
<menu_config location_level_1="0" location_level_2="0" location_level_3="0">
<item display_string="less than 32 char long" insert_string="less than 512(!) chars long">
</item>
<group display_string="less than 32 char long" insert_string="less than 512(!) chars long">
<item display_string="less than 32 char long" insert_string="less than 512(!) chars long">
</item>
</group>
</menu_config>
</app>
</my_menus>
Thank you very much @Vogtinator, it works !
Here is a custom 3-levels menus tree with the TI-Nspire language codes, to be used in multilingual programs for example :
- Code: Select all
<my_menus>
<app name="Program Editor">
<!-- location_level_X <= 30 -->
<menu_config location_level_1="0" location_level_2="0" location_level_3="0">
<group display_string="Language codes" insert_string="">
<item display_string="Arabic" insert_string="ar">
</item>
<group display_string="Chinese" insert_string="">
<item display_string="Simplified" insert_string="zh_CN">
</item>
<item display_string="Traditional" insert_string="zh_TW">
</item>
</group>
<item display_string="Danish" insert_string="da">
</item>
<item display_string="Dutch" insert_string="nl">
</item>
<item display_string="Finish" insert_string="fi">
</item>
<item display_string="Flemish" insert_string="nl_BE">
</item>
<item display_string="French" insert_string="fr">
</item>
<group display_string="English" insert_string="">
<item display_string="American" insert_string="en">
</item>
<item display_string="British" insert_string="en_GB">
</item>
</group>
<item display_string="German" insert_string="de">
</item>
<!--
<item display_string="Italian" insert_string="it">
</item>
<item display_string="Norwegian" insert_string="no">
</item>
<item display_string="Portuguese" insert_string="po">
</item>
<item display_string="Spanish" insert_string="es">
</item>
<item display_string="Swedish" insert_string="sv">
</item>
-->
</group>
</menu_config>
</app>
</my_menus>
But if I uncomment the Italian entry, the menu stops being displayed.
Did I make an error ?
Or is there some limit ?
What are location_level_1 to location_level_3 for ?
In your code, I can see a
<app name="Program Editor">
. Thus, can we customize applications other than the Program Editor ?