cancel
Showing results for 
Search instead for 
Did you mean: 

Access a scrollable container using hard keys

PBU
Associate III

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

1 REPLY 1
PBU
Associate III

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