Ok, thank very much... I tell you what I am looking for....
I have initialized the buttons as you told me:
botones boton1 = {30,15, 20, 40, "boton1"};
botones boton2 = {30,15, 20, 40, "boton2"};
botones boton3 = {30,15, 20, 40, "boton3"};
botones boton4 = {30,15, 20, 40, "boton4"};
And now I have, a second struct (and a third struct) like that:
typedef struct
{
String nzona;
botones boton[];
} zonas;
typedef struct
{
String nzona;
botones boton[];
} zonas;
typedef struct
{
String nsitio; //The name of the site
zonas zona[5];
} sitio;
sitio misitio;
I want to reference like that... (in fact I am not sure if I have defined the strucs right)
misitio.zona[0].boton[0].posx = 30;
or
misitio.zona[1].nzona = "Texto Zona 1";
and things like that...... but I have 2 main doubts.
1 - Am I defining the structures right? I don't know, but it is like I see something strange.
2 - I would like to fill the structure in the time I declare... but I am not able, I loose myself. Any advise about it? I just "fills" buttons as you told me, but I loose again to zonas and site....
Thank you very mucha.