Tool/software: TI C/C++ Compiler
Hi- I'm using the Graphics Library in a Project with an MSP430 and a graphics display. This is more of a software question then an issue. I have a bunch of Button structures defined and I would like to modify them without specifying a particular button. For example;
Graphics_Button But_Menu1= { 135, 250, 0, 30, 2, 0, ClrBlack, ClrWhite, ClrLightGrey, ClrWhite, ClrWhite, 154, 8, "MESSAGE 1", &g_sFontCmss18b };
Graphics_Button But_Menu2 = { 260, 375, 0, 30, 2, 0, ClrBlack, ClrWhite, ClrLightGrey, ClrWhite, ClrBlack, 288, 8, "MESSAGE 2, &g_sFontCmss18b };
//in program instead of this
But_Menu1.fillColor = ClrLightBlue;
// I would like to use a variable mychoice to choose either Menu1 or Menu2?
mychoice.fillColor = ClrLightBlue;
//how do I do this?
//Thanks