Is it possible to change Menu Item Icon with code (Static Menu)

I have a static menu and i want to change one menu item icon by code which i wrote on the onExecute.

For example;

if (a=1)
menu_item_icon = " …example1.png";
else
menu_item_icon = “…example2.png”;

I’ve created this menu staticaly so i can not use macros to change it.

Many thanks…

Hello:

what you mean with staticaly, if you mean you created it using SC menu editor, then you are wrong… you can always use SC macros to modify it.

Regards

[QUOTE=kafecadm;34497]Hello:

what you mean with staticaly, if you mean you created it using SC menu editor, then you are wrong… you can always use SC macros to modify it.

Regards[/QUOTE]

sc_appmenu_update_item

Updates an application menu item dinamically

[B]It is only possible to use this macro when there is an array created before by the macro sc_appmenu_create.

It is only possible to use this macro on items created before by the macro sc_appmenu_add_item.[/B]

As you see, i can not use macros for the menus i created using sc menu editor.

Ok man… then there’s your answer.

Regards