Stores the tag associations on an existing Super Genie, closes it, then assigns the tags to a new window. This allows a Super Genie popup window to call another popup window, and close the parent popup.
This function is effectively the same as the AssChainWin() function, but frees the current Super Genie.
AssChainWinFree(sPage, X, Y, Mode)
The page name of the Super Genie. If you prefixed your Super Genie page name with an exclamation mark (!), remember to include it here.
X - the x pixel coordinate of the top-left corner of the window.
Y - the y pixel coordinate of the top-left corner of the window.
The mode of the window:
0 - Normal page.
1 - Page child window. The window is closed when a new page is displayed, for example, when the PageDisplay() or PageGoto() function is called. The parent is the current active window.
2 - Window child window. The window is closed automatically when the parent window is freed with the WinFree() function. The parent is the current active window.
4 - No re-size. The window is displayed with thin borders and no maximize/minimize icons. The window cannot be re-sized.
8 - No icons. The window is displayed with thin borders and no maximize/minimize or system menu icons. The window cannot be re-sized.
16 - No caption. The window is displayed with thin borders, no caption, and no maximize/minimize or system menu icons. The window cannot be re-sized.
32 - Echo enabled. When enabled, keyboard echo, prompts, and error messages are displayed on the parent window. This mode should only be used with child windows (for example, Mode 1 and 2).
64 - Always on top.
128 - Open a unique window. This mode helps to prevent this window from being opened more then once.
256 - Display the entire window. This mode helps to ensure that no parts of the window will appear off the screen
512 - Open a unique Super Genie. This mode helps to prevent a Super Genie from being opened more than once (at the same time). However, the same Super Genie with different associations can be opened.
1024 - Disables dynamic resizing of the new window, overriding the setting of the [Page]DynamicSizing parameter.
You can select multiple modes by adding modes together (for example, set Mode to 9 to open a page child window without maximize, minimize, or system menu icons).
0 (zero) if successful, otherwise an error is returned.
Ass, AssChain, AssMetadata, AssMetadataPage, AssMetadataPopup, AssMetadataWin, AssChainPage, AssChainPopUp, AssChainWin, AssGetProperty, AssGetScale, AssInfo, AssInfoEx, AssPage, AssPopUp, AssScaleStr, AssTag, AssTitle, AssVarTags, AssWin
// Close the current genie window and display a new genie using the current associations
AssChainWinFree("!GeniePopup", 200, 300, 1 + 8);
Super Genie Functions