Hello All,
I am using Tivaware grahics library (grlib) on TM4C123 microcontroller along with QVGA TFT LCD for my Project.
I am using "RectButtonStruct" to define buttons on my screen and through touch i/p I am moving to other screen(through pfnOnClick). everything works fine. Now the problem I am facing is when I define both "pui8Image" and "pui8PressImage" in my button structure with different Images, The image changes to pressed image and I am navigating to next screen after that when I come back to my 1st screen The button Image is still "pui8PressImage" instead of "pui8Image" though the button is already released. so How to change the Button Image to "pui8Image" when I traverse Back.
- Next is If I want to retain My pressed Image depend on another press event,i.e The previously pressed Image should retain its image(pressedImage) till another button is pressed? How to do this?
(One workaround I found is using some external user defined flags, But this is not a feasible solution for me as I have many screens any many buttons, Monitoring all the flags will kill my performance.)
Any Help will be Highly Appreciated!! :-)
Thank you.
-Nagendra.