Can we use application's variables inside the Menu control's items?


Guest

Hi David

Would it be possible to use variables in the Menu.Items property in the menu control ?

ie.
Rather than have an item " MyApp"

Can we use something " [App.ID]" ?

Or is there some way we can parse these ourselves?


DecSoft

Hello fakie,

I am sorry, but, after take a look, apparently is not possible to get something exactly like you wanted at designtime. On the other hand, there is no problem to place a code like this to set the Menu's first item (for example) at runtime:



Guest

Great! That will work.


Guest

Works as well.


DecSoft

Hello,

Works as well.

Well, yes. In fact the double quotes escapes are automatically does by the action's editor. If you use single quotes there is OK too.


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.