2019-03-24 10:22 AM
Hi,
I want to access a scrollable container using Hard keys, is it possible? I have tried with doscroll virtual function by creating a subclass for scrollable container. We are using LCD with no touch option, so i have to control the scrollable container functions using Hard keys.
Thanks
2019-03-28 07:32 AM
Hi All,
The Issue was solved. Actually we have to create a class as a subclass of scrollable container and by making the doscroll() function as public we can access the doscroll member function.
class MyScrollableContainer:public ScrollableContainer
{
public:
MyScrollableContainer();
~MyScrollableContainer();
bool doScroll(int16_t deltaX, int16_t deltaY);
};
MyScrollableContainer::MyScrollableContainer()
{
}
MyScrollableContainer::~MyScrollableContainer()
{
}
bool MyScrollableContainer::doScroll(int16_t deltaX, int16_t deltaY)
{
return ScrollableContainer::doScroll(deltaX, deltaY);
}
MyScrollableContainer Menu;
Menu.doScroll(0, 25); Move down
Menu.doScroll(0, -25); Move up