Archive: Custom page skipped after back and forward


Custom page skipped after back and forward
Hey,

I'm wondering if it's normal behaviour or if I have a hidden problem in my code:

The start page of my MUI is followed by a custom page. That works fine as long as I'm not going back from the custom page to the start page and then (forward) to my costum page. If I'm doing that, the page simply will be skipped and I don't know why.
Is that normal or unnormal?

Thanks :)

CJ


Abnormal and usually caused by bad usage of the custom page function, like displaying two pages in the same function. Attach your code, so we can have a look and find the issue,


I'm sorry, I've just found the problem.
I'm using a array inside the page. I'm cleaning it when leaving the page - so that there will be no problem when getting back to the page. But the leave function will not be called when "leaving" the page using the back button.
I'm builing a workaround right now.

Sorry for bothering you.

Thanks anyway for your realy fast answer! :)


Now, I've got another problem... -.-'

I'm trying to use the function OnBack from nsDialogs. But it seems to have no effect.

Page custom chooseDisplay leaveChooseDisplay

Function chooseDisplay
${NSD_OnBack} "msgFunc"

...
nsDialogs::Show
FunctionEnd

Function msgFunc
MessageBox MB_OK "OnBack"
FunctionEnd

I'm never going to see "OnBack" when clicking the back button of the custom page.

The page works absolutly correct apart from that. (I'm using it for some days now. I've just not tryed going back before today. So I'm sure, the page is not the problem. ;))

Thanks :)
CJ

You call it after nsDialogs::Create?


No, I don't. I've put it after the create command now. It works fine.
Thank you! :)