Skip to main content
PBU
Associate III
March 24, 2019
Question

Access a scrollable container using hard keys

  • March 24, 2019
  • 1 reply
  • 469 views

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

This topic has been closed for replies.

1 reply

PBU
PBUAuthor
Associate III
March 28, 2019

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