FG Spreadshirt Swag
  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253

    Subwindow - showed event

    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?
    Last edited by Xarxus; January 29th, 2024 at 19:13. Reason: errors
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #2
    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

  3. #3
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    This is my solution

    Code:
        
    <template name="mysubwindow">
       <subwindow>
          <script>
             function onVisibilityChanged()
                WindowManager.callInnerWindowFunction(self, "onVisibility");   
             end
          </script>
       </subwindow>
    </template>
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in