General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion New … Tab Group click the x icon to close and the file_close macro XMetal 11

  • JRP

    New … Tab Group click the x icon to close and the file_close macro XMetal 11

    Participants 0
    Replies 1
    Last Activity 4 years, 10 months ago

    We're using XMetal 11.0.0.066 on Windows 7.

    We have code that runs on the FILE_CLOSE event macro that basically does some document cleanup and calls ActiveDocument.Close().  This worked fine in XMetal 7 even if the user had “tiled” their windows using the Window menu.  However, with the introduction of Tabs, and specifically Tab Groups, our macro fails to close the correct document in one specific case.  When a user has created a new “Tab Group” (horizontal or vertical), and they click the little x on the tab associated with a document that isn't the active document (their cursor is in another document), the document with the cursor closes.  In other words, clicking the x does not activate the document contained in that tab before closing.  Is this a bug?  Clicking the tab itself activates the document, but clicking the little x does not.  Any help with how we could catch this event and close the appropriate document would be appreciated.  

    As an aside, if we disable our FILE_CLOSE event macro, XMetal knows to close the correct document.  We just need to know too 🙂

    As another aside, we submitted a support case for this as well.

    Reply

    Derek Read

    Reply to: New … Tab Group click the x icon to close and the file_close macro XMetal 11

    This was dealt with as a support case, so for anyone else following this issue…

    By default, the close button in the new UI (versions 8 and up) is drawn as a single button that is shared by all documents. This button is not tied properly to the ActiveDocument.Close() API. Development is looking into making this consistent for the next release.

    In the meantime, enabling a feature that draws a close button (X) on each document tab resolves the issue.

    1. Press Alt+Shift+S to open the XMetaL Appearance dialog.
    2. Enable the checkbox labeled “Show 'Close' button on the active tab”.
    3. Click OK to save settings.

    The INI variable for that setting is: app_look_activetab_closebutton = true

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support