PDA

View Full Version : Subwindow - showed event



Xarxus
January 29th, 2024, 19:12
Hi everyone. I've 4 subwindows. The users can see them one at a time with the "previous" and "next" buttons.
What I need is to do something when a subwindow is shown (not loaded or initiated, but shown - the users can
go back and forth as they please and every time the subwindow is shown, I need to do something).

Do I have to use the "previous" and "next" buttons or is there an event that I can't find?

Moon Wizard
January 29th, 2024, 22:19
There is an "onVisibilityChanged" call that is made when setVisible API is called on the subwindow control (not the included window, but the control itself).

Regards,
JPG

Xarxus
February 3rd, 2024, 10:45
This is my solution



<template name="mysubwindow">
<subwindow>
<script>
function onVisibilityChanged()
WindowManager.callInnerWindowFunction(self, "onVisibility");
end
</script>
</subwindow>
</template>