Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback when changing the page? #561

Open
u1550l opened this issue Feb 5, 2025 · 2 comments
Open

Callback when changing the page? #561

u1550l opened this issue Feb 5, 2025 · 2 comments

Comments

@u1550l
Copy link

u1550l commented Feb 5, 2025

Hi Paul,
is there a mechanism available to get a callack when changing the active page?
I want to save the pageId in nvram and restore it after power failure.

If not: My first attempt would be to extend the gslc_SetPageCur() function.
What do you recommend?

Regards - Richard

@Pconti31
Copy link
Contributor

Pconti31 commented Feb 9, 2025

@u1550l No mechanism is available. It might be simplest to modify gslc_SetPageCur(). This will however avoid tracking popups and when a base page is the active page. Trying to restore their state would be much harder, but if needed you should instead modify
gslc_SetStackPage() which all of the api and internal routines end up calling on page changes...

Paul--

@u1550l
Copy link
Author

u1550l commented Feb 9, 2025

@Pconti31 ,
thanks for you help. May be I will come back later with more detailed questions ...
-- Richard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants