This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

extended GRLib usage with LM4F232 eva kit



I have adopted the faily excessive SliderMenu (Macro) usage in the qs-logger example for my needs and have made own menus for my HMI. I always fail with one simple requirement :

"depending from some sw-internal state I want to change the colour of one if the SliderMenu Items I currently show the user from e.g. green to red" 

How could I reach this? All colours I have set until are statically (pre-)set in advance - I do not find any way to change the colour of the frame/canvas which currently has the focus dynamically.

Please somebody help me out....

BTW: Does somebody know some more examples of GRLibs usage - other then in the stellarisware src-dir? Later are either to simple or to complex and unflexible. In every case the show only 20% of GRLib's power.

Thanks

--jens

 

  • The present design does not allow for the possibility of different colors for individual cells.  If you want to add this feature, you need to add a cell color field to the SlideMenuItem structure.  And then you need to modify the SlideMenuDraw() function to use the new color field to set the color for drawing the menu item.  Then when you want to change the color you set the value of the color of the particular  menu item, and then force a repaint of the menu.

  • Thank you Stellaris Joe,

    I will give this task some lower priority now and will implement it when I have some more features in the system up and working....