General XMetaL Discussion
JRP May 18, 2018 at 8:08 pm
New … Tab Group click the x icon to close and the file_close macro XMetal 11May 18, 2018 at 8:08 pmParticipants 0Replies 1Last Activity 4 years, 1 month 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.Derek Read May 25, 2018 at 10:58 pm
Reply to: New … Tab Group click the x icon to close and the file_close macro XMetal 11May 25, 2018 at 10:58 pm
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
- You must be logged in to reply to this topic.