You try to fill a structure runtime with more than one element.
I have never done that, I think it is not possible.
You can fill the structure with values like that when declaring the structure.
In runtime, do it like this:
Menu00.Text = "Run";
.... and so on
Is it using a menu library ? Are there examples for the menu library ?
Perhaps this might work:
struct Menu_t {
const char *Text; //Pointer to our text
void (*Action)(); //Pointer to our action routine
struct Menu_t *Next; //Pointer to the next menu entry at this level
struct Menu_t *Prev; //Pointer to the previous menu entry at this level
struct Menu_t *Down; //Pointer to the menu entry one level down
struct Menu_t *Up; //Pointer to our parent
};
struct Menu_t Menu[17] = {
{ "Run", NULL, &Menu[1], NULL , NULL , NULL },
{ "Setup", NULL, &Menu[13], &Menu[0], &Menu[2], NULL },
{ "Times", NULL, &Menu[9], NULL , &Menu[3], &Menu[1] },
{ "Dev", NULL, &Menu[4], NULL , NULL , &Menu[2] },
{ "Stop", NULL, &Menu[5], &Menu[3], NULL , &Menu[2] },
{ "Fix1", NULL, &Menu[6], &Menu[4], NULL , &Menu[2] },
{ "Fix2", NULL, &Menu[7], &Menu[5], NULL , &Menu[2] },
{ "Wash1", NULL, &Menu[8], &Menu[6], NULL , &Menu[2] },
{ "Wash2", NULL, NULL , &Menu[7], NULL , &Menu[2] },
{ "Fixes", NULL, &Menu[10], &Menu[2], NULL , &Menu[1] },
{ "Washer", NULL, &Menu[11], &Menu[9], NULL , &Menu[1] },
{ "Speed", NULL, &Menu[12], &Menu[10], NULL , &Menu[1] },
{ "Accel", NULL, NULL , &Menu[11], NULL , &Menu[1] },
{ "Test", NULL, NULL , &Menu[1], &Menu[14], NULL },
{ "Opt", NULL, &Menu[15], NULL , NULL , &Menu[13] },
{ "Ma", NULL, &Menu[16], &Menu[14], NULL , &Menu[13] },
{ "Mb", NULL, NULL , &Menu[15], NULL , &Menu[13] },
};
void setup()
{
}
void loop()
{
}